Results 1 to 2 of 2

Thread: How do I control the QTableView font color when the control loses focus?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2014
    Posts
    5
    Qt products
    Qt5
    Platforms
    Windows

    Default How do I control the QTableView font color when the control loses focus?

    I recently got helping fixing the row selection coloring:

    http://www.qtcentre.org/threads/5983...ht=#post265415

    But I'm having the same problem with the selected row font color changing when the table loses focus. With focus, the selected row font color is white (which is what I want). Without focus, the font color changes to black. How to I prevent this color change?

    Thanks,

    Aaron Stibich

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How do I control the QTableView font color when the control loses focus?

    The same way, just use HighlightedText role.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 3
    Last Post: 29th July 2014, 18:18
  2. How to control the color of the focus rectangle
    By Berryblue031 in forum Qt Programming
    Replies: 2
    Last Post: 21st June 2012, 13:55
  3. How to set focus on control
    By sq_vasya in forum Qt Programming
    Replies: 3
    Last Post: 8th November 2010, 20:06
  4. problem with Hebrew font in a control
    By HeX0R in forum Newbie
    Replies: 12
    Last Post: 11th February 2010, 14:27
  5. Replies: 0
    Last Post: 16th December 2009, 09:45

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.