Problem changing combo-box style in webview

  • 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?

  • 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.

Log in to reply