Results 1 to 4 of 4

Thread: QComboBox and style

  1. #1
    Join Date
    Jan 2006
    Posts
    122
    Thanks
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QComboBox and style

    Hi,
    while experimenting with NorwegianWoodStyle I tried to derive it from PlastiqueStyle rather than MotifStyle, everything is ok apart from the area arounf the combobox.
    Since I'd like to make a custom style I can't understand how to fix it deriving from Plastique.

    thanks for any help
    Attached Images Attached Images

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QComboBox and style

    You may start from examining QPlastiqueStyle::drawComplexControl()...
    The plastique style most probably uses only a background color instead of a brush for drawing combo box's background.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    Lele (17th July 2006)

  4. #3
    Join Date
    Jan 2006
    Posts
    122
    Thanks
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QComboBox and style

    Thanks, I'll try to figure it out which enum tag represents combo box's background.
    Anyone knows?
    bye

  5. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QComboBox and style

    I'm pretty sure the background is drawn in QStyle::drawComplexControl(CC_ComboBox).
    J-P Nurmi

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.