Results 1 to 3 of 3

Thread: QFrame and its background

  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QFrame and its background

    Hi,

    I have a QFrame on a form in designer.
    If I choose a background color for that frame, the frame gets the background color in the design mode but when I do preview, the background is not visible, meaning, the frame gets to be transperent and and the form under it has it original color (ok that actually makes sense for a *frame*.
    It behaves the same when the app is running.
    But is there a way to have a background for a frame so that is will be visible?

    Qt4 SUSE10.
    Thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QFrame and its background

    Set autoFillBackground property to true.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    high_flyer (20th April 2006)

  4. #3
    Join Date
    Jun 2006
    Location
    USA
    Posts
    6
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Re: QFrame and its background

    Thank you thank you thank you sooooooooo much. I have spent 2 days trying to change this in Qt4 and I didn't need it in Qt3.

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.