buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept())); connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
m_settingsDialog = new QDialogButtonBox( QDialogButtonBox::Save | QDialogButtonBox::Cancel ); m_settingsDialog->show(); connect(m_settingsDialog, SIGNAL(accepted()), this, SLOT(acceptSettings())); connect(m_settingsDialog, SIGNAL(rejected()), this, SLOT(acceptSettings()));
How can I implement the typical settings dialog from Qt?
I'm currently trying the simpler version of the example in the documentation :
So, am I using the correct dialogue for a typical settings panel? If so, what am I doing wrong?
Thanks,
Max.
PS Using Qt4.6.2 on PR1.2