Results 1 to 7 of 7

Thread: Changing the colour of an individual widget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2006
    Location
    Cambridge, MA
    Posts
    32
    Thanked 7 Times in 6 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Changing the colour of an individual widget

    Georgie,

    What version of Qt are you using? Starting with 4.1 the default bahavior for most widgets is to get the background directly from thier parent essentially skipping any type of fill. Most likely you need to call setAutoFillBackground(true) on the widgets that are misbehaving.

    --Justin Noel
    justin@ics.com

  2. The following 2 users say thank you to Glitch for this useful post:

    georgie (2nd May 2006), mhoover (3rd May 2006)

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. Replies: 1
    Last Post: 8th February 2009, 11:37
  3. Changing QPushButton text colour with mouseMoveEvent
    By Misenko in forum Qt Programming
    Replies: 1
    Last Post: 10th June 2008, 16:53
  4. Changing colour thru qss file
    By phillip_Qt in forum Qt Programming
    Replies: 3
    Last Post: 27th March 2008, 05:36
  5. Dynamically changing QLabel background colour
    By T4ng10r in forum Qt Programming
    Replies: 19
    Last Post: 19th April 2007, 12:47

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.