Results 1 to 4 of 4

Thread: Problem with widget stylesheets in 4.5.3 on Linux

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Problem with widget stylesheets in 4.5.3 on Linux

    Greets!

    I'm having a bit of issue trying to create a label with a transparent background using a stylesheet. Everything seems to work, except I get a weird radial gradient that I didn't ask for...

    Qt Code:
    1. testLabel = new QLabel("Hello, world!");
    2. testLabel->setStyleSheet(
    3. "background-color: rgba(255, 255, 255, 0%);"
    4. "font-size: 20px;"
    5. );
    6. addWidget(testLabel);
    To copy to clipboard, switch view to plain text mode 

    I've attached an image that shows what I'm talking about.

    Any idea where that gradient is coming from and how I can get rid of it? It appears to happen on buttons too.
    Attached Images Attached Images

Similar Threads

  1. Replies: 3
    Last Post: 12th April 2006, 08:20
  2. Problem reimplementing QSpinBox in a custom widget
    By hvengel in forum Qt Programming
    Replies: 1
    Last Post: 30th March 2006, 08:12
  3. Problem with custom widget
    By jnana in forum Qt Programming
    Replies: 3
    Last Post: 15th March 2006, 11:55
  4. Widget resizing problem
    By fwohlfert in forum Qt Programming
    Replies: 3
    Last Post: 23rd February 2006, 08:16
  5. Replies: 7
    Last Post: 3rd February 2006, 10:20

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.