Results 1 to 3 of 3

Thread: QTreeWidget Hide Highlighter

  1. #1
    Join Date
    Dec 2016
    Posts
    37
    Qt products
    Qt5
    Platforms
    Windows

    Default QTreeWidget Hide Highlighter

    I've got a QTreeWidget that I use to display a few things. I do not need the blue highlighter that comes up when you mouse over the table.

    I've tried setting the selectionMode to NoSelection, and that has not worked.

    Thanks for any help.

    t

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: QTreeWidget Hide Highlighter

    Set the flags for each QTreeWidgetItem
    Qt Code:
    1.  
    2. item->setFlags(item->flags() & ~Qt::ItemIsSelectable);
    To copy to clipboard, switch view to plain text mode 
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. #3
    Join Date
    Dec 2016
    Posts
    37
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QTreeWidget Hide Highlighter

    This did not work. what else can I try?

Similar Threads

  1. QTreeWidget Hide Column Headers
    By tvj4218 in forum Newbie
    Replies: 3
    Last Post: 18th September 2017, 04:00
  2. QTreeView Mouse Highlighter
    By tvj4218 in forum Newbie
    Replies: 9
    Last Post: 14th February 2017, 17:20
  3. Hide the branches in a QTreeWidget
    By SkripT in forum Qt Programming
    Replies: 19
    Last Post: 7th October 2012, 17:57
  4. xml highlighter
    By inspiron18 in forum Newbie
    Replies: 1
    Last Post: 4th March 2012, 01:48
  5. textbox+highlighter
    By nima in forum Qt Programming
    Replies: 0
    Last Post: 27th June 2011, 16:39

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.