Transparency in Qt

This is a discussion on Transparency in Qt within the Linux Programming forums, part of the Platform Specific Boards category; hi, folks... I can't make a QLabel (which contains a picture from a png file) be transparent. Anyone knows how ...

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

    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
    Posts
    110
    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.

    Later,
    WebmasterMattD
    WebmasterMattD.NET

Popular pages Recent additions subscribe to a feed

Similar Threads

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21