Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.38 KB

00-QPushButton-普通按钮.md

File metadata and controls

26 lines (16 loc) · 1.38 KB

QPushButton

继承自QAbstractButton

普通按钮控件,常见于界面上的确定、应用、取消、是、否等按键。

The push button, or command button, is perhaps the most commonly used widget in any graphical user interface. Push (click) a button to command the computer to perform some action, or to answer a question. Typical buttons are OK, Apply, Cancel, Close, Yes, No and Help.

Qt官方文档

Qt 5.15 官方文档-QPushButton

常用方法

属性 数据类型 描述
autoDefault bool 自动默认
default bool 默认键(用户在对话框中按下键盘Enter键后会触发该键)
flat bool 设置外观扁平化

信号

信号 说明
showMenu 显示(弹出)相关的弹出式菜单