Results 1 to 4 of 4

Thread: Shade in background?

  1. #1
    Join Date
    May 2011
    Posts
    120
    Thanks
    9
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Shade in background?

    Hi
    I want to give shade in a button background , with stylesheet is it possible.

  2. #2
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Shade in background?

    Do you mean background color ?

    This way you can ..

    setStyleSheet ("QPushButton{ background: red } " )

    or


    QPushButton push("Quit");

    push.setStyleSheet ("QPushButton{ background-color: rgb(0, 0, 255) } " ) ;
    Last edited by augusbas; 29th June 2011 at 12:11.

  3. #3
    Join Date
    May 2011
    Posts
    120
    Thanks
    9
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Shade in background?

    i know setting the background but how i can give a 3d/shaow view in the background.

  4. #4
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Shade in background?

    see this whether it will have any change -- "QPalette::Shadow "

Similar Threads

  1. Qt3 : How to set the background??
    By Kunkka in forum Qt Programming
    Replies: 3
    Last Post: 18th April 2011, 03:07
  2. Replies: 0
    Last Post: 5th April 2011, 14:36
  3. Replies: 1
    Last Post: 25th June 2010, 19:31
  4. How to set background
    By zbliujia in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2009, 06:18
  5. transparent background
    By fruzzo in forum Qt Programming
    Replies: 13
    Last Post: 18th March 2008, 15:42

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.