Hello everyone, I am a beginner of QT and having some trouble to make a combobox with colorbar item.
Such like this pic:
Attachment 9958
Thanks for the help.
Printable View
Hello everyone, I am a beginner of QT and having some trouble to make a combobox with colorbar item.
Such like this pic:
Attachment 9958
Thanks for the help.
What have you got so far? What is it you are have a problem with?
Cheers,
_
Thank for your reply.
The problem is I can create combobox and fill items with single color :
Attachment 9959
But I have no idea to fill item with series colors :
Attachment 9960
What about this: you create QPixmaps and set them as the combox entries, see addItem() overload that takes a QIcon
You can either paint into the pixmaps or load images into them.
Cheers,
_