_______________________________________________ Interest mailing list Inte...@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
-- Tibold Kandrai CEO @ Dotz Team
I set the modality, windows flags etc, but I can't find how to make the small windows not disappear
I have a Qt application displayed full screen, and small semi-transparent windows (QGraphicsView + QML) on top on the main app.
Hi Tibo,
I have the same thing and it works fairly well:
- My sub window is just a QWidget with a designed ui.
- In its constructor, I pass the Qt::Dialog flag (with others to customize the title bar).
TCourseTree::TCourseTree(QWidget *parent)
: QWidget(parent,
Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
{
ui.setupUi( this );
}
- create the sub window with the main window as parent. (I think this is the thing you have missed).
- show and hide the window as appropriate (using animation on the transparency in my case).
Hope that helps,
Tony.
Sent: Tuesday, 3 April 2012 4:06 AM
Hi guys,thanks a lot for your help !I forgot to mention one thing: on Ubuntu 10.04 X11 x86 running with gnome and matacity, it's working.
I also had to change the focus policy so I can still click on the background (main app) window.