mischi
12th July 2006, 08:52
Hello,
my program uses QWorkspace and adds new windows to this workspace.
Child *child = new Child(this,0);
workspace->addWindow(child);
When closing the QFileDialog of one of the windows, the active window is resetted to window nr.1 of the windowlist (creation order).
QString fileName = QFileDialog::getOpenFileName(
this,
tr("Open"),
"/path",
tr("Textfile (*.txt)"));
I've got no clue why the active window changes... need help, please!
my program uses QWorkspace and adds new windows to this workspace.
Child *child = new Child(this,0);
workspace->addWindow(child);
When closing the QFileDialog of one of the windows, the active window is resetted to window nr.1 of the windowlist (creation order).
QString fileName = QFileDialog::getOpenFileName(
this,
tr("Open"),
"/path",
tr("Textfile (*.txt)"));
I've got no clue why the active window changes... need help, please!