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. QTreeView Loses Highlight when clicking on empty space

QTreeView Loses Highlight when clicking on empty space

Scheduled Pinned Locked Moved Solved General and Desktop
1 Posts 1 Posters 206 Views
  • 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.
  • C Offline
    C Offline
    Chrisw01
    wrote on last edited by
    #1

    Re: QTreeView loses highlight when clicking on empty space.

    I finally figured this out. My original problem was I have dead buttons that come to life when a cell is clicked. However if you had not filled the entire QTreeView widget and had blank rows when you clicked in the blank area the TreeView would lose focus but the buttons would stay active. As it turns out, the viewport of the QTreeView is the one generating the event. So I installed a eventfilter on the viewport to handle the event when a user clicks on a blank area.

    Thanks...

    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