Results 1 to 4 of 4

Thread: QPalette works differently on windows and linux

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: QPalette works differently on windows and linux

    thanks for the link jpn.

    in the link the code sets pushbutton to red color.
    Qt Code:
    1. button->setStyleSheet("color: #0000dd; background-color: red;");
    To copy to clipboard, switch view to plain text mode 

    but even if we use
    Qt Code:
    1. button->setStyleSheet("background-color: red;");
    To copy to clipboard, switch view to plain text mode 

    this we get the same ,then what does color: #0000dd signify and do we really need it. i have gone through the docs(The Style Sheet Syntax) and i have not found any thing like this.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QPalette works differently on windows and linux

    Quote Originally Posted by babu198649 View Post
    i have gone through the docs(The Style Sheet Syntax) and i have not found any thing like this.
    Really? It's all explained in the list of stylable properties: http://doc.trolltech.com/4.3/stylesh...tml#color-prop
    J-P Nurmi

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

    babu198649 (6th March 2008)

Similar Threads

  1. Replies: 19
    Last Post: 21st January 2008, 09:13
  2. Project won't compile under Windows (works under Linux)
    By philski in forum Qt Programming
    Replies: 7
    Last Post: 14th September 2006, 15:29

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.