Results 1 to 3 of 3

Thread: setstyle problem

  1. #1
    Join Date
    Jul 2012
    Posts
    23
    Thanks
    3

    Question setstyle problem

    hey guys, I need some help. please help me!

    I want to set style just one dialog.
    I want not to set style the other dialog.
    but QWidget::setstyle is not working!
    only QApplication::setstyle is working....

    but using QApplication::setstyle, all dialog's shape was changed..
    All example about style use QApplication::Setstyle.

    I'll be crazy...help me!

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: setstyle problem

    Which styles? What platform? How are you setting it? When are you setting it?

  3. #3
    Join Date
    Jul 2012
    Posts
    23
    Thanks
    3

    Default Re: setstyle problem

    custom style..I use norwegianwoodstyle that of qt example..

    I set style using this code
    Qt Code:
    1. setStyle(new norwegianwoodStyle);
    To copy to clipboard, switch view to plain text mode 
    and try this too.
    Qt Code:
    1. QWidget::setStyle(new norwegianwoodStyle);
    To copy to clipboard, switch view to plain text mode 

    I'm setting it in dialog's constructor.

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.