[Solved]Custom QComboBox
-
I want to create a widget similar with: "widget":http://img259.imageshack.us/img259/5048/comboj.jpg .Can I do it from a QComboBox? I tried to find a way to get the combo popup menu( I want to add there a QTableWidget ) but I didn't find a way. Another solution could be to use a button with an edit field. How would you implement this? Thanks!
-
You could probably try some things with a list model and muck about a bit with the decoration role to get the images. I don't think there is a nice way to create the sub-headers, except for disabled items in the list. QComboBox accepts a list model (setModel()).
-
Thanks for the hint, I found a nice example, look at "this":http://qtwiki.org/QCombobox_header_item if you run in the same problem.