Thread: Transparency in Qt

  1. #1
    Registered User MathFan's Avatar
    Join Date
    Apr 2002

    Question Transparency in Qt

    hi, folks...

    I can't make a QLabel (which contains a picture from a png file) be transparent.

    Anyone knows how I do that?

    I'm using Qt Designer 3.1
    The OS requirements were Windows Vista Ultimate or better, so we used Linux.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Not entirely sure that it can be done to be honest.

    What I presume you are wanting to do is have a main background image and then the lable ontop of that with a transperancy so that the background will still show through.

    How this is done is through the use of a QCanvas.

    Esentialy a QCanvas is a drawable area that handles the displaying of QCanvasItems that can be layered and will be able to handle your transperancy.

    Hope that this answers your question.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 06-17-2008, 04:00 PM
  2. QT or others for the beginning linux programmer
    By FillYourBrain in forum Linux Programming
    Replies: 3
    Last Post: 09-12-2003, 01:17 PM
  3. How do you print on a transparency ?
    By Zeeshan in forum A Brief History of
    Replies: 8
    Last Post: 02-25-2003, 02:29 PM
  4. First QT App
    By Troll_King in forum A Brief History of
    Replies: 5
    Last Post: 07-26-2002, 09:30 AM