QCombobox QStyle question
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
Re: QCombobox QStyle question
By "assets" I assume you mean the one and only drop down button.
Customizing QComboBox and the Qt Style Sheets Reference
Re: QCombobox QStyle question
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.
Re: QCombobox QStyle question
You probably need to create a proxy style that diverts the requests that you have pixmaps for.
Cheers,
_