Results 1 to 8 of 8

Thread: QTreeView items - different stylesheet for root and childs - is it possible?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Posts
    21
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QTreeView items - different stylesheet for root and childs - is it possible?

    Hello All,

    I'm going to create a contact list for my app with groups and I'm using QTreeView with a model. My question is: Can I stylize the root element with style different from the childs or some other trick(s) to specify different stylesheet for each item.


    Thanks in advance for all responses.
    Last edited by Kostanev; 5th December 2010 at 13:53. Reason: spelling corrections

Similar Threads

  1. QTreeView: include root in tree?
    By meter in forum Newbie
    Replies: 2
    Last Post: 14th June 2010, 12:59
  2. Replies: 1
    Last Post: 10th June 2010, 05:35
  3. Direct root childs inline QTreeView
    By faraslacks in forum Qt Programming
    Replies: 2
    Last Post: 15th January 2009, 07:45
  4. QTreeView: make root decoration appear on visual column 0
    By chezifresh in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2008, 02:36
  5. QTreeView rows (items) StyleSheet
    By Kostanev in forum Qt Programming
    Replies: 1
    Last Post: 15th September 2007, 10:36

Tags for this Thread

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.