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. Searching for a particular text in a combo box
Forum Updated to NodeBB v4.3 + New Features

Searching for a particular text in a combo box

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 872 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    adiQt4
    wrote on last edited by
    #1

    @I am creating a plugin in which I load topic to a combo box.
    It works as follows:
    ComboBox1(CB1): Has two topics, upon selcting one of them it loads two other topics to ComboBox2(CB2). the issue here is once a topic has been selected from CB1 before loading all the topics to CB2 a check has to be made so that duplicates copies topics are not loaded and no topics should be missed to CB2. Is there a method in which I can check the topics loaded to CB2? For instance, load the topics only "if (! ui_.CB2->find(topics))" (which by the way I tried and did not work). If anybody has an idea do let me know. @

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      First thing, are you really using QtQuick for that ? From your post text it looks more like a widget version.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adiQt4
        wrote on last edited by
        #3

        Sorry. I have moved the question to 'General and Desktop' section. And yes, it is a widget. Any suggestions?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          adiQt4
          wrote on last edited by
          #4

          I tried moving the post to other section and apparently only the moderators can move a post. I have approached a moderator (Andre) and asked him to move the post to ‘General and Desktop'

          Edit: done; Andre

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            One way I can is would be to use a QListModel with all your topics, then in between add a QSortFilterProxyModel where you set e.g. a QRegExp filter base on your combo box number 1 selection

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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