Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTreeWidget: disable highlighting items on mouse hover, or set highlighted item programmatically
Forum Updated to NodeBB v4.3 + New Features

QTreeWidget: disable highlighting items on mouse hover, or set highlighted item programmatically

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Violet Giraffe
    wrote on last edited by
    #1

    Is it possible to prohibit QTreeWidget from highlighting items on hover? I still want items to be selectable, just not being highlighted.

    Alternatively, is it possible to control this highlight in any way? My problem is: I have a mouse hovering over an item and this item is highlighted. I then quickly clear the list and re-populate, and now the item that cursor is hovering is no longer highlighted, which is awkward.

    P. S. I have used QCoreApplication::postEvent to post mouse move event after updating the widget, and it works, but it's not a very pretty solution...

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved