PDA

View Full Version : QCombobox QStyle question



RolandHughes
5th March 2014, 19:40
All,

Is there a link to a functioning example replacing QComboBox assets via QStyle? I see much mention, but not much code. Not really interested in a hand-draw-everything approach as was done in the Qt4 book. Interested in replacing the image assets as I already have pre-loaded pixmaps.

Thanks,
Roland

ChrisW67
5th March 2014, 23:04
By "assets" I assume you mean the one and only drop down button.

Customizing QComboBox and the Qt Style Sheets Reference

RolandHughes
7th March 2014, 17:07
Thanks for the reply. Style sheets cannot be used as they are exponentially slower than compiled code. By "assets" I mean the border, line edit background, scrollbar, item list background, selected item background, etc.

anda_skoa
7th March 2014, 20:20
You probably need to create a proxy style that diverts the requests that you have pixmaps for.

Cheers,
_