C++ (Qt)...if (!dialog.exec()) return;//считываем опции.
C++ (Qt)class Dialog: public QDialog{ Q_OBJECT...public: QString lineEditText1() const { return m_leLineEdit1->text(); } QString lineEditText2() const { return m_leLineEdit2->text(); } bool flag1() const { return m_cbCheckBox1->isChecked(); } bool flag2() const { return m_cbCheckBox2->isChecked(); } private: QLineEdit *m_leLineEdit1; QLineEdit *m_leLineEdit2; QCheckBox *m_cbCheckBox1; QCheckBox *m_cbCheckBox2;};...if (!dialog.exec()) retrun;...const QString text1 = dialog.lineEditText1();const QString text2 = dialog.lineEditText2();bool flag1 = dialog.flag1();bool flag2 = dialog.flag2();...
C++ (Qt)class MainWindow : public QMainWindow{ ....private: FirstOptionWidget *m_firstOptions; SecondOptionWidget *m_secondOptions;}; // Доступ к опциямvoid MainWindow::changedFirstOption(){ bool o1 = m_firstOptions->options1; QString option2 = m_firstOptions->strintOption(); m_firstOptions->setData( "text" );}