How to set absolute layout of the widgets in different qt app
-
I use a QDeclarativeView * view to show my QML. app1 and app2 are two applications that show QML, and I want app1 to move out of screen and back, then lowers app1 to the bottom of app2.
The issue is:
•If I don’t use setWindowFlags(Qt::X11BypassWindowManagerHint), app1 cannot move out the screen
•If I use setWindowFlags(Qt::X11BypassWindowManagerHint),view->lower() doesn’t workIt seems let the app1 under the lowest, include under the Desktop that cannot see the app1.
Here is my app1 code :
@int main(int argc, char argv[])
{
QApplication a(argc, argv, true);
QDeclarativeView view;
QDeclarativeContext context;
QDeclarativeEngine engine;
Connector* connector;view = new QDeclarativeView(); connector = new Connector(); context = view->rootContext(); context->setContextProperty("Connector", connector); context->setContextProperty("gRadioQMLDir", QDir::currentPath()); view->setWindowFlags( Qt::FramelessWindowHint |Qt::X11BypassWindowManagerHint); view->setSource(QUrl::fromLocalFile("qml/Main.qml")); view->setViewportUpdateMode(QGraphicsView::MinimalViewportUpdate); view->show(); view->lower(); return a.exec();
}@