Results 1 to 2 of 2

Thread: QTreeView::item stylesheet

  1. #1
    Join Date
    Aug 2009
    Posts
    29
    Thanked 1 Time in 1 Post

    Default QTreeView::item stylesheet

    Goodday forum (trolls) and fellow Qtérs.

    i am sitting with a problem. I have subclassed QAbstractListModel to show a list of items i made myself to. i put this into a QGraphicsView and everything show perfectly like i wnat to.

    Now here is my problem, i add the view into a QGraphicsScene to show it. And trough ->addStyleSheet("") i make my view more neat.

    But here is the problem i want to colour the items in the treeview, so i used QTreeView::item but this does not work at all. Anyone has any idea on how to make it work for me.. i use QT 4.6.0.

    and i also read the doc's: http://doc.trolltech.com/4.6/stylesh...zing-qtreeview but it does not work poorly.....

    thanx in advance.

    regards Baasie

  2. #2
    Join Date
    Aug 2009
    Posts
    29
    Thanked 1 Time in 1 Post

    Default Re: QTreeView::item stylesheet

    i found out that using creator it works....but this does not fix the problem since i cannot make the itme in creator.

Similar Threads

  1. Replies: 7
    Last Post: 12th January 2011, 22:01
  2. Palette? Stylesheet?
    By mikey33 in forum Newbie
    Replies: 0
    Last Post: 18th November 2009, 08:37
  3. stylesheet standard button names
    By h123 in forum Qt Programming
    Replies: 0
    Last Post: 14th April 2009, 12:42
  4. stylesheet loading issue - thread
    By talk2amulya in forum Qt Programming
    Replies: 8
    Last Post: 26th February 2009, 12:53
  5. StyleSheet components using Qt designer
    By Kostanev in forum Qt Tools
    Replies: 1
    Last Post: 21st April 2008, 08:28

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.