How to show the widget in the dialog
Unsolved
General and Desktop
-
Hi All,
I'm using qt5.5 on my computer and Linux+QT for my OS system.I wanna show the small window that can shows some options for user to choose.
And I'm doing with QDialog.
This is how I designed.connect(ui->scan,SIGNAL(clicked()),this,SLOT(openscanwindow())); . . . . void MainWindow::openscanwindow() { QDialog *scan = new QDialog(this); scan->exec(); }
My question is how can I show the widget in QDialog scan?
Any advise or document for me to read?
Thanks in Advanced!
-
@victor-wang said in How to show the widget in the dialog:
My question is how can I show the widget in QDialog scan?
What I understood is you want to add few number of widgets to QDialog(scan), which is nothing but setting those widgets as children of QDialog(scan).
-
Hi,
What to read ? Start with the QDialog documentation which provides several links to examples.