Results 1 to 4 of 4

Thread: How to change a created application form with a "clean looks" style or other styles?

  1. #1
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default How to change a created application form with a "clean looks" style or other styles?

    Hello,
    I am trying to set a "clean looks" style to my created application form or dialog. How can I do it?

  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: How to change a created application form with a "clean looks" style or other styl

    You cannot do it in Qt Designer. Use QWidget::setStyle() in code.
    J-P Nurmi

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

    gemmx (11th January 2009)

  4. #3
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to change a created application form with a "clean looks" style or other styl

    You can even set the style when starting the application. See http://doc.trolltech.com/4.4/qstyle.html#details -> Setting a Style.
    That's nice .

  5. The following user says thank you to Boron for this useful post:

    gemmx (11th January 2009)

  6. #4
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to change a created application form with a "clean looks" style or other styl

    Thank you!
    It was not that difficult as I thought first .

    How I did it:

    app = QtGui.QApplication(sys.argv)
    #QCleanlooksStyle
    app.setStyle('cleanlooks')

    And that makes the trick that I was looking for.

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.