Hi!
At some point, my app opens a Dialog which contains controls to configure a tool. Ok. On wiondws this works just fine:
class MyToolDialog
: public QDialog{
//...
}
// in the main app:
MyToolDialog * d = new MyToolDialog(this, Qt::Tool);
d->setAttribute(Qt::WA_DeleteOnClose)
d->show();
d->raise();
d->activateWindow();
class MyToolDialog : public QDialog
{
//...
}
// in the main app:
MyToolDialog * d = new MyToolDialog(this, Qt::Tool);
d->setAttribute(Qt::WA_DeleteOnClose)
d->show();
d->raise();
d->activateWindow();
To copy to clipboard, switch view to plain text mode
Now this makes the dialog stay on top, and the main widget is still accessible. As it should.
BUT
On my Mac, 10.5.something with Qt 4.5.3, the dialog does not stay on top.
Same code, same everything.
I also used this Qt::WA_MacAlwaysShowToolWindow, and I also tried to set Qt::WindowStaysOnTopHint explicitly, but still the dialog goes behind the main app as soon as I use the tool.
Thanks for yourhelp in advance
Olli
Bookmarks