Results 1 to 3 of 3

Thread: Transparent Push button over background image

  1. #1
    Join Date
    Mar 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Transparent Push button over background image

    Hi all,

    i am new to this. I am designing remote controller GUI. I have my remote controller image as background. Now i want to create button on each position like 1,2,3 or ch up, ch down etc... For that if my push button is transparent i can do this easily. I searched this forum for transparent button, there are few solutions on stylesheet , autofillbackground true like that. but nothing helps me. Can anyone give me the correct solution. I hope there is a soloution.

    Many thanks in advance,

    Kumar

  2. #2
    Join Date
    Mar 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Transparent Push button over background image

    Hi..

    I found some thread regariding this from older post.
    http://www.qtcentre.org/threads/1342...parent-widgets

    Here they are talking about some QAbstract , dont understand. Can any one explain me how?

    Thanks,
    Kumar

  3. #3
    Join Date
    May 2014
    Posts
    1
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Lightbulb Re: Transparent Push button over background image

    pushButton->setStyleSheet("QPushButton{background: transparent;}");
    or also - pushButton->setAttribute(Qt::WA_TranslucentBackground);

    source: http://www.linkedin.com/groups/Need-...49.S.223885559

Similar Threads

  1. Replies: 3
    Last Post: 3rd August 2012, 10:35
  2. adding image and text both to a push button
    By Charvi in forum Qt Programming
    Replies: 5
    Last Post: 3rd August 2012, 08:44
  3. Replies: 0
    Last Post: 29th September 2011, 09:41
  4. Push Button with image?
    By steve.bush in forum Newbie
    Replies: 10
    Last Post: 18th March 2011, 06:48
  5. problem in Displaying image on push button
    By durgarao in forum Qt Tools
    Replies: 4
    Last Post: 2nd January 2009, 10:27

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.