Originally Posted by
wysota
Why not?
This is what I am doing now.
I create a new window in the mainwindow with:
jasenSiirto *jassiir = new jasenSiirto(this);
jassiir->setWindowTitle("Jäsenten siirto");
ui->mdiArea->addSubWindow(jassiir, Qt::SubWindow);
jassiir->show();
jasenSiirto *jassiir = new jasenSiirto(this);
jassiir->setWindowTitle("Jäsenten siirto");
ui->mdiArea->addSubWindow(jassiir, Qt::SubWindow);
jassiir->show();
To copy to clipboard, switch view to plain text mode
And then used the parent value from the created window constructor
jasenSiirto
::jasenSiirto(QWidget *parent
) :ui(new Ui::jasenSiirto)
jasenSiirto::jasenSiirto(QWidget *parent) :
QDialog(parent),
ui(new Ui::jasenSiirto)
To copy to clipboard, switch view to plain text mode
I then managed to use the signaling system to contact the mainwindow and get it to create another mdichild window.
It seemed to work atleast. Are there some stability/security/other problems with this approach? How should I do it then?
Bookmarks