As soon as I setWindowFlags(Qt::Tool) strange things start happening.
The window does not get keyboard focus on startup.
When closing with the X in the upper right corder, the process is not terminated (but it does when called via slot aApp quit().
Also closeEvent(QCloseEvent *event) does not get called.
It does this with an otherwise empty test project.
There's a Qt example program windowflags, but this one gets terminated when choosing a Tool window.
What could this be?
P.s. I'm using qdevelop, great tool, and the project is in debug mode.
[edit] I think a window with Qt::Tool flag cannot be a normal mainwindow. It is a qwidget in the windowflags example, not a qmainwindow.
Bookmarks