Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Which QWiget is best for asking the user to assign items to some concept?
Forum Updated to NodeBB v4.3 + New Features

Which QWiget is best for asking the user to assign items to some concept?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 384 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.
  • J Offline
    J Offline
    Justin Sayne
    wrote on last edited by
    #1

    In my application I'm using a hardware configuration dialog where all the ports are scanned for available components and then I wish to ask the user to assign three tasks (might be more in the future) to different devices of them. Right now I'm just using a ComboBox for each task where I enumerate all the devices in each one. I want to disallow duplicates however, so if the user chooses DevA for TaskA I'd like the widget to automatically remove all entries from the other ComboBoxes. Right now I have to do this manually or check for erroneous conditions in the end. Is there a better solution?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rturrentine
      wrote on last edited by
      #2

      You can connect to the EditFinished signal of each combo box and update the other combo boxes appropriate (either remove the selection from the other combos or disable the select of it).

      The GUI would flow best if the user has select the tasks in order. This way you could delay populating B and C until A is selected. Either way, you could use signal to update them appropriately. They will need to start with no selection or 3 unique selections though.

      1 Reply Last reply
      1

      • Login

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