Results 1 to 6 of 6

Thread: QHeaderview and backgroundColorRole

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    20
    Thanked 3 Times in 3 Posts
    Platforms
    Unix/X11

    Default QHeaderview and backgroundColorRole

    I have a table view and I need a way to set the color of a row header for a particular row. Note that some row headers may have different colors. In my model in the headerData() function I handle the case of QBackgroundRole and QBackgrounColorRole. Neither of them do anything. How do you specify the color of a row header?

    Thanks.

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


Similar Threads

  1. QStyle vs Qt::BackgroundColorRole
    By wirasto in forum Qt Programming
    Replies: 4
    Last Post: 10th April 2015, 15:23
  2. Same QHeaderView for several tables
    By qks1 in forum Newbie
    Replies: 4
    Last Post: 21st November 2012, 12:28
  3. Replies: 0
    Last Post: 20th January 2010, 19:51
  4. QHeaderView
    By waynew in forum Qt Programming
    Replies: 2
    Last Post: 25th December 2009, 20:42
  5. QHeaderView
    By gyre in forum Qt Tools
    Replies: 1
    Last Post: 25th September 2007, 16:35

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.