Results 1 to 3 of 3

Thread: Change background for Widget by StyleSheet, buttons doesn’t show 3D frame.

  1. #1
    Join Date
    Mar 2010
    Posts
    68
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Change background for Widget by StyleSheet, buttons doesn’t show 3D frame.

    Qt Code:
    1. background: rgb(8, 8, 8);
    2. }
    To copy to clipboard, switch view to plain text mode 

    somebody help me!

  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: Change background for Widget by StyleSheet, buttons doesn’t show 3D frame.

    its because your style sheet also affects the background of your buttons. Is it only one specific widget? If so use th # selector with the object name. Or use ".QWidget".

  3. #3
    Join Date
    Mar 2010
    Posts
    68
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Change background for Widget by StyleSheet, buttons doesn’t show 3D frame.

    Thank you!

    It works fine. If I use the StackedWidget, the designer doesn't show correct.

Similar Threads

  1. how to change BackGround image on a stacked widget
    By mcrahr in forum Qt Programming
    Replies: 3
    Last Post: 10th February 2010, 08:38
  2. Show dock widget frame/border
    By maverick_pol in forum Qt Programming
    Replies: 2
    Last Post: 21st May 2009, 10:04
  3. how to change the color of the frame
    By wagmare in forum Qt Programming
    Replies: 5
    Last Post: 12th May 2009, 12:46
  4. Frame buffer background during splash screen
    By Micawber in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 23rd January 2009, 19:38
  5. Change frame rate
    By superutsav in forum General Programming
    Replies: 1
    Last Post: 3rd August 2006, 21:02

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.