I made a plasma app that opens a settings dialog
I'm trying to close a dialog with a close button
If I open it like this
void test::settings() {
myQtApp *dialog = new myQtApp;
dialog->show();
}
void test::settings() {
myQtApp *dialog = new myQtApp;
dialog->show();
}
To copy to clipboard, switch view to plain text mode
How can i close it like this
{
setupUi(this);
connect( pushButton_close, SIGNAL( clicked() ), this, SLOT( close() ) );
}
void myQtApp::close() {
"this shold close the dialog");
}
myQtApp::myQtApp(QWidget *parent)
{
setupUi(this);
connect( pushButton_close, SIGNAL( clicked() ), this, SLOT( close() ) );
}
void myQtApp::close() {
QMessageBox::about(this,"close",
"this shold close the dialog");
}
To copy to clipboard, switch view to plain text mode
Bookmarks