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. Adding tags to qt project
QtWS25 Last Chance

Adding tags to qt project

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 942 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.
  • N Offline
    N Offline
    NS_19
    wrote on last edited by
    #1

    I am new to QT.I am using Qt5.3.
    I have a combobox in ui file which displays a set of values.How can i add a functionality where each value selected from combobox appears as tag with a cross so that user can remove a tag anytime.Finally it would result in multiple tags based on selections done from combobox.

    Secondly is there a way to make combobox work in such a way that when user types an alphabet for searching a value, only the values starting from that alphabet appears in combobox.

    Thanks for the help in advance.

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

      Hi and welcome to devnet,

      For the value filtering, you can have a look at "QCompleter":http://qt-project.org/doc/qt-5/qcompleter.html

      Are you trying to implement with QWidgets the site tagging functionality ?

      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
      • N Offline
        N Offline
        NS_19
        wrote on last edited by
        #3

        yes i used qcompleter for value filtereing.
        yes basically each value selected from combobox should appear as a new tag

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

          Then add a slot that reacts on the currentIndexChanged(const QString &text) signal and update the QLabel content with that text

          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