Yeah I did that:
viewport()->setAttribute(Qt::WA_Hover, true);
viewport()->setMouseTracking(true);
viewport()->setAttribute(Qt::WA_Hover, true);
viewport()->setMouseTracking(true);
To copy to clipboard, switch view to plain text mode
I get mouse event in every situation, except when:
- I create a widget on top of the QListView.
- I close it.
- I do get an enter event on my QListView but no mouseMoveEvent.
- When I do move the cursor I do get my mouseMoveEvent.
So I need to move the mouse to finally get a mouse event on my QListView.
Thus my question, can I grab the cursor position in the EnterEvent ?
Bookmarks