Adding tags to qt project
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.
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 ?
yes i used qcompleter for value filtereing.
yes basically each value selected from combobox should appear as a new tag
Then add a slot that reacts on the currentIndexChanged(const QString &text) signal and update the QLabel content with that text