Results 1 to 10 of 10

Thread: setting a custom QStyle on a QWidget doesn't work

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: setting a custom QStyle on a QWidget doesn't work

    Quote Originally Posted by JimDaniel View Post
    I'm sure my QStyle code is correct, because when I set the style on the QApplication object, everything comes out how its supposed to, groupboxes and scrollbars alike.
    Then how about this?
    Qt Code:
    1. m_dialog_scrollarea->horizontalScrollBar()->setStyle(new MaxStyle());
    2. m_dialog_scrollarea->verticalScrollBar()->setStyle(new MaxStyle());
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to jacek for this useful post:

    JimDaniel (11th January 2008)

  3. #2
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Thanks
    14
    Thanked 41 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: setting a custom QStyle on a QWidget doesn't work

    That did it. Thanks so much!

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
  •  
Qt is a trademark of The Qt Company.