WhatThis&ToolTip not working(QTableWidget)
-
Hi everyone.
I can't find proper SIGNAL in QTableWidget for mouse hovering. Here they all:I need something like:
cellHovered(int row, int column);P.S. need same for horizontalHeaderItem
P.P.S. i found that i need something like WhatThis function, because only text appearance needed. But i setWhatThis to my QTabelWidgetItem's, and nothing happened when i hovering on that items....UPDATE:
Need to use setWhatThis or setToolTip, but none of them working, i don't know why..
-
Hi everyone.
I can't find proper SIGNAL in QTableWidget for mouse hovering. Here they all:I need something like:
cellHovered(int row, int column);P.S. need same for horizontalHeaderItem
P.P.S. i found that i need something like WhatThis function, because only text appearance needed. But i setWhatThis to my QTabelWidgetItem's, and nothing happened when i hovering on that items....UPDATE:
Need to use setWhatThis or setToolTip, but none of them working, i don't know why..
-
Side note, you might also need to enable http://doc.qt.io/qt-5/qwidget.html#mouseTracking-prop
-
Goal of topic changed. I need to use whatThis(); or toolTip(); but none of them working...
I set both that functions, even included
#include <QWhatsThis> #include <QToolTip> tempItem->setWhatsThis("this"); tempItem->setToolTip("tool");But not working. I hovering on my items, no text appears.
-
@VRonin said in Signal for hovering cursor on cell(QTableWidget):
It should work. Are you calling
setItemWidget()on any of those items?No i do not. There is no such function for QTableWidget or QTableWidgetItem
UPDATE:
Now it's starts to work, i don't know what i've changed...