Qt inheritance
Solved
General and Desktop
-
Hi,
What does that part of "implimentation" below mean simply please?
class FindDialog : public QDialog // header { Q_OBJECT public: FindDialog(QWidget *parent = 0); ... FindDialog::FindDialog(QWidget *parent) // implimentation : QDialog(parent) { ... int main(int argc, char *argv[]) // main.cpp { QApplication app(argc, argv); FindDialog *dialog = new FindDialog; dialog->show(); return app.exec(); }
Does that mean we send a pointer to QWidget to the base class, QDialog?
-
Hi,
You are passing the parent parameter to the base class.