Is there any method to show tip when mouse hovering over label
-
What I want is like this picture.

-
What I want is like this picture.

@chris_rookie
AllQWidgets, therefore includingQLabel, inherit https://doc.qt.io/qt-5/qwidget.html#toolTip-prop. It will not have the "bubble" in your picture, but have you started from there? -
@chris_rookie
AllQWidgets, therefore includingQLabel, inherit https://doc.qt.io/qt-5/qwidget.html#toolTip-prop. It will not have the "bubble" in your picture, but have you started from there?@JonB If there has a label didn't have enough width to hold all words, how can I show the complete words.
-
@JonB If there has a label didn't have enough width to hold all words, how can I show the complete words.
@chris_rookie
One possibility might be to follow the pattern in https://stackoverflow.com/questions/17221621/how-to-set-qt-tooltip-width. A more complex discussion is in https://stackoverflow.com/questions/4795757/is-there-a-better-way-to-wordwrap-text-in-qtooltip-than-just-using-regexp.