I found that I can set a tooltip on a QLineEdit as such:
equation = new QLineEdit();
equation->setToolTip("Example: a*b+c+~c");
However, I would like the tooltip to be displayed when that QLineEdit is focused.
How do I do that?
Thanks in advance.
I was able to accomplish this by subclassing QLineEdit and overriding focusInEvent(…) as such: