Results 1 to 2 of 2

Thread: stylesheets and trasparent background

  1. #1
    Join Date
    Feb 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default stylesheets and trasparent background

    I have a style sheet that practically overrides everything. In a certain situation I have a QGroupBox with a gradient background. Inside that QGroupBox I place a QScrollArea. The problem is that the QScrollArea cannot be transparent. I've tried to set all the backgrounds to none but it takes the default QWidget background.

    Qt Code:
    1. background: none;
    2. }
    3.  
    4. background: none;
    5. }
    6.  
    7. background: none;
    8. }
    To copy to clipboard, switch view to plain text mode 

    Screenshot-Form-1.png

    Any ideas?

  2. #2
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: stylesheets and trasparent background

    Try this:

    QWidget{
    background: rgba(0,0,0,0);
    border: none;
    }

    Sometimes it shows the border, if you don't specifically set the border to none
    It's not the goodbye that hurts,but the flashback that follow.

Similar Threads

  1. Replies: 5
    Last Post: 21st July 2010, 22:51
  2. QStandardItem background color with Stylesheets enabled
    By hubbobubbo in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2010, 10:23
  3. background gradient with stylesheets
    By martinn in forum Qt Programming
    Replies: 6
    Last Post: 28th February 2010, 15:37
  4. Replies: 1
    Last Post: 18th September 2009, 10:32
  5. QGraphicsTextItem+trasparent fill+png
    By nicolas1 in forum Qt Programming
    Replies: 2
    Last Post: 27th November 2008, 00:23

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.