EDN首页   博客首页

日志档案

发表于 2007-9-25 13:28:40

1

标签: 无标签

C.plus.plus.GUI.Programming.with.Qt.4

 3 FindDialog::FindDialog(QWidget *parent)
4 : QDialog(parent)
5 {
6 label = new QLabel(tr("Find &what:"));
......
On line 4, we pass on the parent parameter to the base class constructor.

The return value is ignored when a slot is executed in response to a signal, but when we call a slot as a function the return value is available to us just as it is when we call any ordinary C++ function.

A dialog is modeless if it's invoked using show() (unless we call setModal() beforehand to make it modal); it is modal if it's invoked using exec().

系统分类: 软件开发   |   用户分类: 综合   |   来源: 整理   |   【推荐给朋友】   |   【添加到收藏夹】

    阅读(495)    回复(0)  

投一票您将和博主都有获奖机会!