Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

SOLVED: Edit dialog from MainWindow

$
0
0
Hello, I have been trying to set the text of a dialog/designer form that has no class but is called from the MainWindow class when a dialog button is clicked. If it’s possible how would you got about it? The slot change_text() sets the content for ap.lineEdit So far the connector won’t call change_text() probably because the dialog has been executed already. void MainWindow::launch_dialog() {     QDialog *diag = new QDialog;     Ui::Dialog ap;     ap.setupUi(diag);     diag->setModal(true);     diag->exec();       connect(ap.pushButton, SIGNAL(clicked()), this, SLOT(change_text())); }

Viewing all articles
Browse latest Browse all 13965

Trending Articles