Results 1 to 13 of 13

Thread: Set the color of a row in a qtreeview

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Feb 2015
    Posts
    7
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Set the color of a row in a qtreeview

    reimplement it how?

    from this post here : http://www.cplusplusdevelop.com/855_3935440/

    QFileSystemModel rejects all calls to setData that is not of the role "Qt::EditRole".
    I tried using setData() and Qt::BackgroundRole with QSortFilterProxyModel instead, it still doesn't do anything. I am not sure what exactly I should reimplement setData to do.
    Last edited by slv1; 27th February 2015 at 08:46.

Similar Threads

  1. Replies: 1
    Last Post: 14th April 2011, 06:34
  2. Qt4.7.0 Alternate Row Color from QSS ignored (QTreeView)
    By DancingFirefly in forum Qt Programming
    Replies: 2
    Last Post: 15th February 2011, 22:12
  3. QTreeView item color
    By tmmak in forum Qt Programming
    Replies: 1
    Last Post: 11th January 2011, 06:08
  4. bg color of current item for a QTreeView
    By joeld42 in forum Qt Programming
    Replies: 1
    Last Post: 18th October 2009, 17:06
  5. About the background color of QTreeView itmes
    By yandy in forum Qt Programming
    Replies: 3
    Last Post: 26th March 2009, 15:38

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.