Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Problem changing combo-box style in webview
HaykG last edited by
I'm writing a custom style for my web-view. I inherit from QCleanlooksStyle and override the drawPrimitve(), drawControl() and drawComplexControl() methods. I've successfully modified the appearance of check-box, button, radio-button, line-edit, but I can't change the combo-box (html select tag) item style as the drawComplexControl() method with ComplexControl == CC_ComboBox is not called (it is called in normal cases i.e. when having a QComboBox in a widget). Any ideas?
benjamin.poulain last edited by
I don't see any reason why the style isn't called.
Here is the code coding the style from WebKit: p.drawComplexControl(QStyle::CC_ComboBox, opt); (RenderThemeQt::paintMenuList() in RenderThemeQt.cpp).
Try setting a breakpoint there to investigate.