Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Conditional Display of Elements

Conditional Display of Elements

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 529 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sjdean
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved