发表于
2007-9-25 13:28:40
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().