Results 1 to 3 of 3

Thread: how to set a child label transparent

  1. #1
    Join Date
    Jul 2010
    Posts
    50
    Thanks
    7
    Platforms
    Windows

    Default how to set a child label transparent

    I ahve used the command:
    this->setStyleSheet( "QFrame {border-image: url(:/images/background.png); }"); for displaying an image in the background.
    Now when I create Labels(children) on the same widget(which is bordered), the labels also get bordered.........
    I want to know How to set the Labels transparent without the use of the paintEvent function?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: how to set a child label transparent

    set a empty style sheet to the labels or use global QFrame > QLabel selector to set a null border.

  3. #3
    Join Date
    Jul 2010
    Posts
    50
    Thanks
    7
    Platforms
    Windows

    Default Re: how to set a child label transparent

    thanx.........I got it

Similar Threads

  1. Replies: 2
    Last Post: 31st May 2010, 11:57
  2. Phonon Video + Transparent Label Problems
    By jftaylor21 in forum Qt Programming
    Replies: 2
    Last Post: 1st November 2009, 18:53
  3. Non-transparent QWidget on semi-transparent parent
    By EuroElessar in forum Qt Programming
    Replies: 0
    Last Post: 29th August 2008, 16:20
  4. Transparent background on QLabel on transparent QWidget
    By codeslicer in forum Qt Programming
    Replies: 1
    Last Post: 13th February 2008, 02:10
  5. child label alignment problem
    By ht1 in forum Qt Programming
    Replies: 9
    Last Post: 21st November 2007, 20:50

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.