Results 1 to 2 of 2

Thread: gridlayout with QPushButton,QIcons and QLabel with trasparent background

  1. #1
    Join Date
    Mar 2013
    Location
    Hyderabad,Bangalore,India
    Posts
    70
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    8
    Thanked 4 Times in 4 Posts

    Default gridlayout with QPushButton,QIcons and QLabel with trasparent background

    Hi,

    I need to create a UI with some icons ,these Icons must be arranged in a grid layout fashion with the transparent background.
    I have tried with QPushButton , QIcon and QLabel but i am not able to make the pushbutton , label background transparent so that i can see only icon and name below the icon with the background image of widget on which they are placed.

    can some one let me know with some example code or reference how else i can design the same UI.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: gridlayout with QPushButton,QIcons and QLabel with trasparent background

    Have you tried?
    Qt Code:
    1. widget->setStyleSheet("background-color: rgba(0,0,0,0%)");
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. QPushButton with a custom QLabel
    By shadyabhi in forum Newbie
    Replies: 9
    Last Post: 13th August 2015, 04:56
  2. Where are the QIcons in QPushButton
    By tescrin in forum Qt Programming
    Replies: 5
    Last Post: 23rd July 2012, 17:15
  3. Replies: 0
    Last Post: 8th October 2011, 12:35
  4. stylesheets and trasparent background
    By godlike_panos in forum Qt Programming
    Replies: 1
    Last Post: 28th June 2010, 14:05
  5. How to set my QPushbutton's background?
    By cspp in forum Qt Programming
    Replies: 18
    Last Post: 24th April 2009, 16: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
  •  
Qt is a trademark of The Qt Company.