Unsolved Conditional Display of Elements
-
Hi There,
Im very new to QT, but a seasoned programmer. So my apologies if this is considered basic, but a simple search didn't point me in the right direction.
I am trying to generate a "Settings" area, utilising a Material View sort of view. Im also trying to make it generic. I have a ListView and a ListModel. The ListElement in the Model will have a "type" of setting to indicate Slider, Checkbox, Radio etc...
However this is where it gets interesting, in my mind, a ListElement will be a setting and each setting could be a different type of setting, from a simple Yes No Checkbox, to multi option Radio buttons, or even a slider.
Each one of those will require a custom layout for display. I'll have one style of Item for each type. So now the problem is dynamically switching to the particular Item layout depending on the type from the List Element.
Can anyone point me in the right direction?
Thanks
Simon