Hello,
my program uses QWorkspace and adds new windows to this workspace.
Child *child = new Child(this,0);
workspace->addWindow(child);
Child *child = new Child(this,0);
workspace->addWindow(child);
To copy to clipboard, switch view to plain text mode
When closing the QFileDialog of one of the windows, the active window is resetted to window nr.1 of the windowlist (creation order).
this,
tr("Open"),
"/path",
tr("Textfile (*.txt)"));
QString fileName = QFileDialog::getOpenFileName(
this,
tr("Open"),
"/path",
tr("Textfile (*.txt)"));
To copy to clipboard, switch view to plain text mode
I've got no clue why the active window changes... need help, please!
Bookmarks