state_tool_tip ============== .. py:module:: qfluentwidgets.components.widgets.state_tool_tip Module Contents --------------- .. autoapisummary:: qfluentwidgets.components.widgets.state_tool_tip.StateCloseButton qfluentwidgets.components.widgets.state_tool_tip.StateToolTip .. py:class:: StateCloseButton(parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QToolButton` .. py:attribute:: isPressed :value: False .. py:attribute:: isEnter :value: False .. py:method:: enterEvent(e) .. py:method:: leaveEvent(e) .. py:method:: mousePressEvent(e) .. py:method:: mouseReleaseEvent(e) .. py:method:: paintEvent(e) .. py:class:: StateToolTip(title, content, parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QWidget` State tooltip .. py:attribute:: closedSignal .. py:attribute:: title .. py:attribute:: content .. py:attribute:: titleLabel .. py:attribute:: contentLabel .. py:attribute:: rotateTimer .. py:attribute:: opacityEffect .. py:attribute:: animation .. py:attribute:: closeButton .. py:attribute:: isDone :value: False .. py:attribute:: rotateAngle :value: 0 .. py:attribute:: deltaAngle :value: 20 .. py:method:: setTitle(title: str) set the title of tooltip .. py:method:: setContent(content: str) set the content of tooltip .. py:method:: setState(isDone=False) set the state of tooltip .. py:method:: getSuitablePos() get suitable position in main window .. py:method:: paintEvent(e) paint state tooltip