Results 1 to 4 of 4

Thread: QPushButton image doesn't show transparency

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2013
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPushButton image doesn't show transparency

    It does look like it but I didn't. The icon has no gradient applied. When I use [code] settingsButton.setStylesheet() [\code] then the icon is transparent and I see the background. Why is there a difference?

  2. #2
    Join Date
    Nov 2013
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPushButton image doesn't show transparency

    So I checked this again and it seems I get transparency of the icon when I write code in .cpp. But when I write it in .qss then I don't. Any thoughts anyone?

Similar Threads

  1. QPushButton doesn't show with a particular text.
    By bwnicewo in forum Qt Programming
    Replies: 0
    Last Post: 30th July 2013, 21:09
  2. Transparency doesn't work in building Qt from sources
    By AspiringEngineer in forum Qt Programming
    Replies: 0
    Last Post: 18th June 2013, 14:31
  3. QPushButton Icon opacity/transparency
    By vladozar in forum Qt Programming
    Replies: 2
    Last Post: 26th November 2012, 16:45
  4. Replies: 9
    Last Post: 8th November 2011, 15:54
  5. Replies: 3
    Last Post: 8th September 2011, 15:45

Tags for this Thread

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.