Hey experts!
quick question:
I'm building a GUI with custom widgets and mapping them using QDataWidgetMapper. The data in my QAbstractTableModel includes different types (bool, int, float), and each widget is designed to handle a specific type, like:
bool → LED
int → textbox with multicolor LED
float → textbox with gauge
I want to design these widgets so they require minimal, or no custom code, to work with the mapper, ideally just:
mapper->addMapping(widget, section, THIS_PROPERTY)
What should I name the getter/setter methods (at maximum for THIS_PROPERTY) in my custom widgets to make this work seamlessly?
Any useful docs or examples on this would be much appreciated!
🙏