jiveaxe
10th August 2007, 14:49
Hi,
i have a problem managing mainwindow and dialogs; I have created a mainwindow and clicking on a button it opens a modeless dialog: here the calling function:
void MainWindow::viewArticle(const QModelIndex& current)
{
if(!articleViewer)
{
articleViewer = new ArticleViewer(this);
}
if articleViewer {
articleViewer->show();
} else {
articleViewer->activateWindow();
}
}
even if i can interact with mainWindow it is always behind the child dialog, which occupy a great part of the screen; should be better choosing at any time what window take in front (like in Qt Designer 4).
Any suggestions?
Thanks
i have a problem managing mainwindow and dialogs; I have created a mainwindow and clicking on a button it opens a modeless dialog: here the calling function:
void MainWindow::viewArticle(const QModelIndex& current)
{
if(!articleViewer)
{
articleViewer = new ArticleViewer(this);
}
if articleViewer {
articleViewer->show();
} else {
articleViewer->activateWindow();
}
}
even if i can interact with mainWindow it is always behind the child dialog, which occupy a great part of the screen; should be better choosing at any time what window take in front (like in Qt Designer 4).
Any suggestions?
Thanks