Hello everyone, I am a beginner of QT and having some trouble to make a combobox with colorbar item.
Such like this pic:
QQ图片20140122142746.jpg
Thanks for the help.
Hello everyone, I am a beginner of QT and having some trouble to make a combobox with colorbar item.
Such like this pic:
QQ图片20140122142746.jpg
Thanks for the help.
What have you got so far? What is it you are have a problem with?
Cheers,
_
likaci (22nd January 2014)
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,
_
likaci (22nd January 2014)
Bookmarks