Results 1 to 3 of 3

Thread: setBackgroundRole of parent without affecting children

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: setBackgroundRole of parent without affecting children

    You could explicitly set a color for the role you are going to change for immediate children of the widget you are going to modify before actually modifying the palette. You would then effectively cut off inheriting the color down the hierarchy.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    TEAmerc (9th October 2015)

Similar Threads

  1. Access to shared map between parent - children
    By atomic in forum Qt Programming
    Replies: 5
    Last Post: 10th August 2015, 22:24
  2. How to set an attribute without affecting children?
    By dominate in forum Qt Programming
    Replies: 0
    Last Post: 15th February 2011, 14:58
  3. Replies: 0
    Last Post: 14th April 2010, 15:03
  4. disable a parent and children in a tree model
    By qt_gotcha in forum Newbie
    Replies: 4
    Last Post: 9th July 2009, 06:49

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.