1. 新建工程项目,application-QT widgets application,名字dialog,基类选择QDialog,选择使用界面文件(.ui)。
2. 打开dialo.ui文件,即打开了界面编辑,界面中包含Buttons、Containers、input widgets等窗口部件。
(1)依次向对话框中拖入3个pushButton,类名分别命名为okButton、cancelButton、moreButton,text名字输入OK、Cancel、More,default设置为真、真、假。
在Cancel和More的按钮之间添加一个verticalspacers。