Results 1 to 11 of 11

Thread: Problem changing background of a child QWidget in Qt 4.1.X

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem changing background of a child QWidget in Qt 4.1.X

    Quote Originally Posted by newby
    I am using Qt 4.1.1 with Visual Studio .NET 2003.
    It works perfectly fine with Visual Studio 6.0.
    Do you use the same Qt version with both of these toolchains?

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

    Default Re: Problem changing background of a child QWidget in Qt 4.1.X

    Yes. I am using the same Qt 4.1.1 with both Visual Studio .NET 2003 and Visual Studio 6.0

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

    Default Re: Problem changing background of a child QWidget in Qt 4.1.X

    It displays the correct color when the child QFrame is selected with mouse click or all children QFrames are selected.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem changing background of a child QWidget in Qt 4.1.X

    Quote Originally Posted by newby
    It displays the correct color when the child QFrame is selected with mouse click or all children QFrames are selected.
    Does it work when you start your application like this:
    C:...\> app.exe -style plastique
    or
    C:...\> app.exe -style windows
    ?

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

    Default Re: Problem changing background of a child QWidget in Qt 4.1.X

    Yes. It works with both those styles.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem changing background of a child QWidget in Qt 4.1.X

    Quote Originally Posted by newby
    Yes. It works with both those styles.
    So most likely the problem lies in QWindowsXPStyle. Try a newer Qt version to see if the problem was fixed.

Similar Threads

  1. QScrollArea problem positioning a QWidget inside
    By Spectator in forum Qt Programming
    Replies: 4
    Last Post: 20th February 2006, 22:59

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
  •  
Qt is a trademark of The Qt Company.