qtooltip

How to make QToolTip message persistent?

安稳与你 提交于 2019-12-12 13:12:52
问题 I want to make a qtooltip message persistent after I clicked the button. I plan to use qtimer to hide it by myself later, but the problem is as soon as I move mouse cursor away from the button rect, the message disappears, I want to make it stay there, until later I call hideText() from PyQt4 import QtGui, QtCore from functools import partial class MyDialog(QtGui.QDialog): def __init__(self, parent=None): super(MyDialog, self).__init__(parent) layout = QtGui.QVBoxLayout() btn = QtGui