Unsolved Make tooltip disappear on QTableView cell
-
Hi
I have a QTableView and a model that returns a tooltip for some cells and nothing for empty cells. When I hovers an empty cell no tooltip is shown. So far so good. My problem is that when I move the mouse from a cell that has a tooltip to an empty cell (with no tooltip) the previous tooltip stays on top for the usual tooltip duration instead of disappearing. So it shows a wrong tooltip for that cell, even when the model returns an empty QString. Is there a way to make the current tooltip hiding?
Regards
-
Setting an empty QString to QToolTip should remove the tooltip for this cell - what Qt version do you use and please provide a minimal, compilable example.
-
[static] void QToolTip::hideText() Hides the tool tip. This is the same as calling showText() with an empty string.
-
@Bonnie Don't see what this should help here... it should be hidden automatically.
-
@Christian-Ehrlicher I'm just answering this :)
Is there a way to make the current tooltip hiding?