当前时区 GMT+8, 现在时间是 2008-9-8 22:22 游客: 注册 登录 仅登录论坛 | 搜索 帮助
标题: QT4 designer小问题请教
yist111
新手上路
Rank: 1


UID 152427
精华 0
积分 1
帖子 1
阅读权限 10
注册 2004-9-12
来自 China.gif
状态 离线
发表于 2007-8-15 09:06  资料  短消息  加为好友 
QT4 designer小问题请教

在c++ programming with qt4 一书的第二章Shape-Changing Dialogs一节中,有这个例子:



1. Click File|New Form and choose the "Dialog with Buttons Right" template.

2. Create the More button and drag it into the vertical layout, below the vertical spacer. Set the More button's text property to "&More", and its checkable property to "true". Set the OK button's default property to "true".



当第一步建一个"Dialog with Buttons Right"之后,有两个按钮,一个OK,一个Cancel,这两个按钮是一个buttonBox组件,我选择OK按钮就会选择这个buttonBox组件,在第二步要求Set the OK button's default property to "true".的时候我怎样才能单独选择OK按钮进行编辑?

顶部
XChinux
新手上路
Rank: 1


UID 10144
精华 0
积分 81
帖子 33
阅读权限 10
注册 2002-12-30
来自 China.gif
状态 离线
发表于 2007-9-11 08:35  资料  短消息  加为好友 
那就不要用dialogButtonBox

那就不要用dialogButtonBox,用普通的pushButton

顶部
hobby!
高级会员
Rank: 4


UID 153489
精华 5
积分 1520
帖子 622
阅读权限 50
注册 2004-9-16
来自 China
状态 离线
发表于 2007-11-29 16:33  资料  短消息  加为好友  QQ
对介面设置,建议,单独分出来编写,意思是,你程序的要完成XXX的事,一系你想好如何做,而中间的数据,用变量(已知)来代替,也可以先做好介面(包括事件融发机制),这两个分开编写,在基本上都写好后,再合并,再修正.....会简单,很多

顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP