I want to do something when a particular list view item is hovered over. I tried the entered(QModelIndex) signal, but it does not seem to be emitted when the cursor is moved over the items (even though they are highlighted when the cursor moves over them). Is there a different signal to indicate this? I only see activated(), clicked() and pressed() here http://qt-project.org/doc/qt-4.8/qabstractitemview.html#signals that seem relevant.
Ah, there is a mouseTracking property of the QListView that has to be set to true, then the entered() behaves as I would expect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With