Results 1 to 6 of 6

Thread: QHeaderview and backgroundColorRole

Threaded View

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

    Default Re: QHeaderview and backgroundColorRole

    OK I found out what is happening. There was a style being applied to QHeaderView::section. Apparently if you apply a style you can't override it within the model. This is problematic as I would would like all rows to be styled the same color and then have the model determine if the row colors should change. Any ideas?

  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
  •  
Qt is a trademark of The Qt Company.