- QDialog dlg(this, Qt::Dialog);
-
- QLineEdit *tmpQLineEdit;
- tmpQLineEdit = new QLineEdit("", &dlg);
- tmpQLineEdit->setGeometry(60, 10, 180, 30);
-
- QLabel *tmpQLabel;
- tmpQLabel = new QLabel(&dlg);
- tmpQLabel->setGeometry(10, 10, 50, 30);
-
- tmpQLabel->setText("Text:");
-
- QCheckBox *tmpQRadioButton;
- tmpQRadioButton = new QCheckBox("Case sensitive", &dlg);
- tmpQRadioButton->setGeometry(70, 50, 150, 30);
- tmpQRadioButton->setAutoRepeat(FALSE);
-
- QPushButton *okbtn, *cbtn;
- okbtn = new QPushButton("Find", &dlg);
- okbtn->setGeometry(260, 10, 100, 30);
- okbtn->setDefault(TRUE);
- connect(okbtn,SIGNAL(clicked()), &dlg, SLOT(accept()));