Results 1 to 2 of 2

Thread: QPopup BGColor Issue

  1. #1
    Join Date
    Jan 2006
    Posts
    30
    Thanks
    6

    Default QPopup BGColor Issue

    Hi to all,

    I am about to work in QStyle class to create my own
    custom style.
    Now I am dealing with QPopupmenu.

    I am able to change the popupmenu background using
    QStyle::drawControl () API.

    Bt, I am not able to change the default color when
    the menu item got focus, it is always have blue color selection.

    I need a solution to change the background color when it gets focus instead
    of blue color, i need to give some other color or pattern.

    Thanks in Advance
    Regards
    -$akthi
    --
    You never know, how soon it may be too late…...

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QPopup BGColor Issue

    Which Qt version are we talking about here? Did you try by modifying the default palette for the style?

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.