Results 1 to 2 of 2

Thread: Prblem in stylesheet.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2010
    Location
    Sydney, Australia
    Posts
    111
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Prblem in stylesheet.

    This should work:

    Qt Code:
    1. button_out->setStyleSheet("QPushButton { color: rgb(200, 127, 66, 255); font-family: verdana, ms sans serif; \
    2. font-size: 14pt; background-color: rgb(203, 202, 203,150); border-style: outset; \
    3. border-width: 2px;border-radius: 10px; border-color: gray; } QPushButton:pressed { background-color:black; } ");
    To copy to clipboard, switch view to plain text mode 

    Rather than setting the stylesheet in this way, on a per-component basis, I highly recommend looking at using a system-wide stylesheet (QSS). See Qt Stylesheet Reference.

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

    Niamita (21st June 2011)

Similar Threads

  1. stylesheet
    By BalaQT in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2010, 07:45
  2. Prblem in Building and running Examples.
    By Tarun in forum Qt Programming
    Replies: 1
    Last Post: 21st January 2010, 13:45
  3. Qt Stylesheet
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 22nd January 2009, 14:48
  4. How to do this with StyleSheet
    By yxmaomao in forum Qt Programming
    Replies: 5
    Last Post: 30th May 2008, 08:54
  5. stylesheet
    By phillip_Qt in forum Qt Programming
    Replies: 11
    Last Post: 27th April 2008, 19:11

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.