Results 1 to 2 of 2

Thread: Invalid Stylesheet

  1. #1
    Join Date
    Jul 2014
    Posts
    46
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Invalid Stylesheet

    background-color: rgb(179, 179, 179);
    QPushButton:pressed{background-color: rgb(200, 200, 200); }

    Gives me invalid stylesheet. Why?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Invalid Stylesheet

    Hi,

    you can't use not scoped and scoped information together. So you also have to put the first information into a scope as well:
    Qt Code:
    1. QPushButton{ background-color: rgb(179, 179, 179); }
    2. QPushButton:pressed{background-color: rgb(200, 200, 200); }
    To copy to clipboard, switch view to plain text mode 

    Cheers

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

    antweb (14th April 2015)

Similar Threads

  1. QDateTime Invalid
    By FreePascal in forum Newbie
    Replies: 2
    Last Post: 7th June 2009, 19:35
  2. Invalid plugin
    By reimer in forum Qt Tools
    Replies: 0
    Last Post: 23rd June 2008, 10:43
  3. QSqlRecord becoming invalid
    By mikro in forum Newbie
    Replies: 5
    Last Post: 3rd October 2006, 18:00
  4. invalid sizeHint()
    By roleroz in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2006, 22:11
  5. Invalid pixmap
    By munna in forum Newbie
    Replies: 2
    Last Post: 8th June 2006, 08:00

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.