Hi, guys:
I want to draw a LinearGradient background for QCombobox item when item was focused.
I can't use CSS do it.
Now I use the code like this: but it seems like that it LinearGradiented for all items as one;
Qt Code:
this->setPalette(p);To copy to clipboard, switch view to plain text mode
Thanks a lot!
Added after 15 minutes:
The Qt deal with the 1st item, 2nd .. .. as a pic. I just want to do each item like the 1st one.
1:
2:
3:
Bookmarks