Results 1 to 3 of 3

Thread: How to know which style is used?

  1. #1
    Join Date
    Sep 2009
    Posts
    19
    Qt products
    Platforms
    Unix/X11

    Default How to know which style is used?

    There's a bug in the GTK+ style that prevents my software to work properly. So I'd like to change it to Cleanlooks when it's used... But I have no clue how to know what style is used...

  2. #2
    Join Date
    Sep 2006
    Posts
    68
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to know which style is used?

    Try this:

    Qt Code:
    1. QString style = qApp->style()->objectName()
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to know which style is used?

    or
    Qt Code:
    1. QApplication::style()->metaObject()->className();
    To copy to clipboard, switch view to plain text mode 
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. Problems with Gradient style used through Style sheet on ARM platform
    By puneet.narsapur in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 25th January 2010, 12:48
  2. Need help to style the GUI
    By NoRulez in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2009, 09:34
  3. Replies: 7
    Last Post: 16th February 2009, 21:59
  4. c++ style
    By mickey in forum General Programming
    Replies: 1
    Last Post: 2nd June 2006, 22:53
  5. Qt style...
    By Sergey B. in forum Qt Programming
    Replies: 10
    Last Post: 21st January 2006, 22:48

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.