Results 1 to 2 of 2

Thread: Issue with StyleSheet

  1. #1
    Join Date
    Jun 2013
    Posts
    2
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Issue with StyleSheet

    Hi all,

    I got a project with a lot of pushbuttons and i want to have the same stylesheet in all of them ¿Is there any way to avoid right click->Change stylesheet and copy paste one by one?

    Regards,

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

    Default Re: Issue with StyleSheet

    Adjust (to target the styles) and set the stylesheet on the widget that contains the push buttons, or the top level window. Or sub-class QPushButton to create MyPushButton that sets the style in its constructor, and use MyPushButton instead of the bare button.

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

    EmilianoM (3rd June 2013)

Similar Threads

  1. stylesheet
    By BalaQT in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2010, 07:45
  2. stylesheet loading issue - thread
    By talk2amulya in forum Qt Programming
    Replies: 8
    Last Post: 26th February 2009, 12:53
  3. Qt Stylesheet
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 22nd January 2009, 14:48
  4. stylesheet
    By phillip_Qt in forum Qt Programming
    Replies: 11
    Last Post: 27th April 2008, 19:11
  5. QLabel Stylesheet selector issue.
    By Enygma in forum Qt Programming
    Replies: 3
    Last Post: 24th August 2007, 14:52

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.