C++ (Qt)connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(accept()));connect(ui->buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
C++ (Qt){ Dialog dlg( this ); if( dlg.exec() == QDialog::Accepted ) { mainwidget->label1->setFont( dlg.font() ); }}
C++ (Qt)Display dialog(this); if( dialog.exec() == QDialog::Accepted ) { ui->label1->setFont( dialog.font() ); }
C++ (Qt)Display dialog(this); if( dialog.exec() == QDialog::Accepted ) { ui->label1->setFont( dialog.ui->label2->font() ); }
C++ (Qt)Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Disp){ ui->setupUi(this); m_FValue = ui->label->font(); QObject::connect(ui->pushButton,SIGNAL(clicked()),this,SLOT(slotFont()));} void Dialog::slotFont(){ MainWindow win(this); win.label_2->setFont(m_FValue);}
C++ (Qt)void Dialog::slotFont(){ MainWindow win(this); win.label_2->setFont(m_FValue);}
C++ (Qt)QFont Dialog::getLabelFont(){ return ui->label->font();}
C++ (Qt) Display dialog(this); if( dialog.exec() == QDialog::Accepted ) { ui->label1->setFont( dialog.getLabelFont() ); }
C++ (Qt)while(!asleep()) sheep++;
C++ (Qt)mainwindow.cpp:45: ошибка: 'class Dialog' has no member named 'getLabelfont'