Results 1 to 4 of 4

Thread: QPushbutton style

  1. #1
    Join Date
    Aug 2009
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QPushbutton style

    Does anyone know how to make a QPushbutton transparent or see-through ?

  2. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPushbutton style

    set window opacity of pushButton
    windowOpacity : double
    or
    set color of lower alpha value in stylesheet
    Qt Code:
    1. background-color: rgba(x, x, x, 10)
    To copy to clipboard, switch view to plain text mode 
    "Behind every great fortune lies a crime" - Balzac

  3. #3
    Join Date
    Oct 2010
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: QPushbutton style

    ui->male_button->setFlat(TRUE);

    ui->male_button->setStyleSheet("* { background-color: rgba(0,125,0,0) }");

  4. #4
    Join Date
    Mar 2010
    Location
    Brasília, Brasil
    Posts
    15
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

Similar Threads

  1. QPushButton frame style
    By Nippler in forum Qt Programming
    Replies: 4
    Last Post: 5th November 2010, 12:10
  2. Replies: 1
    Last Post: 15th March 2009, 20:02
  3. Coloring checkable QPushbutton with style sheet
    By RThaden in forum Qt Programming
    Replies: 1
    Last Post: 25th July 2008, 18:11
  4. Style QPushButton
    By Rodrigo in forum Qt Programming
    Replies: 1
    Last Post: 8th January 2008, 06:50
  5. BG image on QPushButton using style sheets??
    By JimDaniel in forum Newbie
    Replies: 2
    Last Post: 13th September 2007, 03:31

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.