Results 1 to 4 of 4

Thread: QFrame background color overpaints the content widgets

  1. #1
    Join Date
    Feb 2015
    Posts
    6
    Qt products
    Qt4

    Default QFrame background color overpaints the content widgets

    Hi,
    There is a horizontal layout which includes QLabels ( used to dislay images ). I've created a QFrame instance and set its layout to this layout. When I set background color of QFrame to black, QLabels are not displayed. It overpaints the content widgets on the layout.
    Could you please help about it ?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QFrame background color overpaints the content widgets

    So the images are displayed when the background color is not black?
    Or are you currently not displaying images, only some placeholder text?

    Cheers,
    _

  3. #3
    Join Date
    Feb 2015
    Posts
    6
    Qt products
    Qt4

    Default Re: QFrame background color overpaints the content widgets

    Yes, the images ( displayed via QLabel ) are displayed when the background color is white. The images ( themselves ) can not be displayed, not text.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QFrame background color overpaints the content widgets

    Ok, strange.
    What if you call setAutoFillBackground(true) on the labels?

    Otherwise you'll have to post some code.

    Cheers,
    _

Similar Threads

  1. Replies: 4
    Last Post: 8th September 2011, 09:22
  2. Replies: 1
    Last Post: 18th September 2009, 11:32
  3. Replies: 1
    Last Post: 30th March 2009, 15:28
  4. Setting background image of QFrame
    By Claymore in forum Qt Programming
    Replies: 2
    Last Post: 12th February 2007, 20:50
  5. QFrame and its background
    By high_flyer in forum Qt Programming
    Replies: 2
    Last Post: 23rd June 2006, 21:32

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.