Results 1 to 2 of 2

Thread: Background Style Disables QScrollBar "Drag" Action

  1. #1
    Join Date
    Feb 2008
    Location
    Riverside, CA
    Posts
    18
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Background Style Disables QScrollBar "Drag" Action

    When I set a background color for my QWidget using QStyle, I lose the ability to "drag" the scroll bar that I placed on this QWidget. This is linux, 4.4.0.

    Help?

  2. #2
    Join Date
    Feb 2008
    Location
    Riverside, CA
    Posts
    18
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Background Style Disables QScrollBar "Drag" Action

    I used this code from QTtForum:

    Qt Code:
    1. QPalette pal = palette();
    2. pal.setColor( QPalette::Window, Qt::black );
    3. setPalette( pal );
    To copy to clipboard, switch view to plain text mode 

    Its happy with this!
    Last edited by jpn; 3rd June 2008 at 21:51. Reason: missing [code] tags

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.