Sorry I think I used the wrong reply button.
Just to repeat what I typed before,
I see event cannot help me in this case, but is there a way to restore the cursor when the pointer moves to the header area?
Thanks.
Sorry I think I used the wrong reply button.
Just to repeat what I typed before,
I see event cannot help me in this case, but is there a way to restore the cursor when the pointer moves to the header area?
Thanks.
If the pointer moves on the header, the header will get an enterEvent. If you intercept such event, you can react on it.
I think enterEvent should work, but before that I've tried the signal entered like
Qt Code:
m_view->horizontalHeader()->setMouseTracking(true); connect(m_view->horizontalHeader(), SIGNAL(entered(QModelIndex)), this, SLOT(changeCursor(QModelIndex)));To copy to clipboard, switch view to plain text mode
And it does not work at all.
I saw the link http://www.qtcentre.org/threads/4405...t-quot-signals
which says it's a bug.
Anyway thanks a lot for your help.
Bookmarks