Results 1 to 2 of 2

Thread: style order

  1. #1
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Thanks
    20
    Thanked 5 Times in 5 Posts
    Qt products
    Platforms
    Unix/X11 Windows

    Question style order

    What the style order for use ? Like this ?

    Example for QTreeView..

    +-------------------------+
    | StyleSheet |
    +-------------------------+
    | Delegate |
    +-------------------------+
    | Role from Model |
    +-------------------------+
    | QStyle |
    +-------------------------+


    So if I want make a custom background color for a QTreeView, and I use custom QStyle and Stylesheet. Then background color from stylesheet will be apply ? And background color from custom QStyle will be ignored ?

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: style order

    when you use a custom style, the other things might apply - depending on what your style does.
    If the style ignores the information passed, then no, the other things won't have an effect.

    If you have the model under control that is probably the easiest way to control the background colour.

Similar Threads

  1. Tab order ignored in QGroupBox
    By adskol in forum Newbie
    Replies: 2
    Last Post: 5th April 2010, 05:42
  2. setting tab order on MAC
    By gren15 in forum Qt Tools
    Replies: 0
    Last Post: 3rd July 2009, 21:08
  3. Setting Tab order
    By Rakesh_Kumar in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2009, 04:58
  4. about tab order
    By hesummar in forum Qt Programming
    Replies: 7
    Last Post: 16th November 2006, 05:45
  5. TAB order on form
    By igor_x in forum Newbie
    Replies: 3
    Last Post: 10th November 2006, 05:29

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.