setToolTip(str): When the icon and the prompt text appear at the same time, only the icon is displayed. Through this, you can set different prompt texts
2. Style setting
setToolButtonStyle(Qt.ToolButtonStyle)
The style of Qt.ToolButtonStyle has the following values: Qt.ToolButtonIconOnly: Only the icon is displayed Qt.ToolButtonTextOnly: Only the text is displayed Qt.ToolButtonTextBesideIcon: The text is displayed next to the icon Qt.ToolButtonTextUnderIcon: The text is displayed below the icon Qt.ToolButtonFollowStyle: Follow the style
3. Arrow style
setArrowType(Qt.ArrowType)
The style of Qt.ArrowType is as follows: Qt.NoArrow: No Arrow Qt.UpArrow: Up Arrow Qt.DownArrow: Down Arrow Qt.LeftArrow: Left Arrow Qt.RightArrow: Right Arrow
4. Automatic upgrade
setAutoRaise(Bool): True: auto-raise
5. Menu and pop-up method
setPopupMode(QToolButton.ToolButtonPopupMode)
The style of QToolButton.ToolButtonPopupMode is as follows: QToolButton.DelayedPopup: Press and hold the mouse for a while to display the menu QToolButton.MenuButtonPopup: There is a prompt arrow for a special prompt QToolButton.InstantPopup: Click the button to display the menu