Your code does not use isolateDialog at all. The dialog instantiation is not correct. You should not create QDialog and set Ui::isolateDialog for it. You are to create isolateDialog instead. So remove the following lines:
Ui::isolateDialog ui;
ui.setupUi(dialog);
Ui::isolateDialog ui;
QDialog *dialog = new QDialog;
ui.setupUi(dialog);
To copy to clipboard, switch view to plain text mode
And just add
isolateDialog *dialog = new isolateDialog;
isolateDialog *dialog = new isolateDialog;
To copy to clipboard, switch view to plain text mode
You also have a mistake in your dialog .cpp file.
connect(minsatSpinBox, SIGNAL(valueChanged(int)), minhueSpinBox, SLOT(setValue(int)));
connect(minsatSpinBox, SIGNAL(valueChanged(int)), minhueSpinBox, SLOT(setValue(int)));
To copy to clipboard, switch view to plain text mode
must be replaced with
connect(minsatSpinBox, SIGNAL(valueChanged(int)), maxsatSpinBox, SLOT(setValue(int)));
connect(minsatSpinBox, SIGNAL(valueChanged(int)), maxsatSpinBox, SLOT(setValue(int)));
To copy to clipboard, switch view to plain text mode
The reason why your code works when you make connections in QDesigner is that QDesigner connects signals and slots in the constructor of Ui::isolateDialog.
Bookmarks