-
simple data binding
Hello,
I want to bind simple data, not lists, trees, tables. Just few strings, numbers between my model class and screen view (appropriate widgets). What is the sipmlest way?
Should I use QAbstractItemModel? Or it is better to use signals and slots for each value change? Or is there another simpler way?
Thanks,
Miro
-
Re: simple data binding
You could use any of these, it should be decided based on how data is used by view and model, if the usage fits into model/view interface classes then you can use QAbstractItemModel. It the data is simple and is limited to couple of strings then can use signal & slots.