Qt ComboBox in Menu View Question
-
Hi,
I was wondering if it is possible to create a qcombobox with a menu view?
Please see image of what I mean:
!http://doc.qt.nokia.com/4.7-snapshot/images/menus-example.png(menu)!
I want a combobox with sublevels like the Edit menu.
Please let me know if this is unclear. Thanks in advanced!!
-
I wanted to have a hierarchical QComboBox with sub levels
ex:
combobox has items:
test1
test1.1
test1.2
test1.3
test2
test3I tried to setView to a tree view, but it wasn't exactly what I wanted...I want more of a menu style.
-
Ahh okay, now I understand... But I'm afraid I can't help much. Of course there's always the possibility to just hack (subclass) QComboBox (or a QLineEdit) to just show a popup menu aligned with the widget so the impression to a regular combobox is similar.
-
By popup menu,
do you mean something like this:
-
That sounds good if there are no other solutions.
Thanks for your help, DerManu!
-
Does any one implemented this feature for the QComboBox... Currently i am looking for the same solution.
"My Post":http://qt-project.org/forums/viewthread/41627/#172610