Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Problem changing combo-box style in webview
QtWS25 Last Chance

Problem changing combo-box style in webview

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 3.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HaykG
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      benjamin.poulain
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved