PDA

View Full Version : QHeaderView in QTableView not sending "entered" or "enteredViewport" signals.



Jeffb
20th August 2011, 10:17
Hi Guys

I've got a QTableView where its QHeaderView is not sending "entered" or "enteredViewport" signals when the mouse cursor passes over it. I've enabled Mouse Tracking on both the QTableView and the QHeaderView.
The QTableView sends these signals ok.

Any ideas why the header isn't sending the signals.

Thanks
Jeff

norobro
20th August 2011, 15:24
Here you go: QTBUG-9050 (https://bugreports.qt.nokia.com/browse/QTBUG-9050) QTBUG-9053 (https://bugreports.qt.nokia.com/browse/QTBUG-9533)

It seems the behavior is still the same.

Jeffb
21st August 2011, 08:57
Thanks for that.
Good to know its not something I'm doing.
I've got around it by using

this->horizontalHeader()->viewport()->installEventFilter(this);
and implementing the

bool eventFilter(QObject *obj, QEvent *event) method.