Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.8.0
-
None
-
Yocto-based Linux Distro, Weston compositor with wayland backend, has Qt 5.8.0
Description
Hi,
I am trying to make sure a Qt/QML application stays on top of other windows in Wayland/Weston Linux desktop system.
What I've tried in order to solve this is I've added the WindowStaysOnTopHint in my main.qml:
main.qml
import QtQuick 2.0 import QtQuick.Controls 2.0 import QtQuick.Window 2.2 ApplicationWindow { visible: true visibility: "FullScreen" maximumWidth: 1920 maximumHeight: 720 minimumWidth: 1920 minimumHeight: 720 width: 1920 height: 720 title: qsTr("App") flags: Qt.FramelessWindowHint|Qt.WindowStaysOnTopHint MainScreen{ anchors.fill: parent } }
{{ main.cpp}}
QGuiApplication app(argc, argv); QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); if (engine.rootObjects().isEmpty()) return -1; return app.exec();
It works in my PC, but it does not work in target platform.
Host PC: Ubuntu 16.04, with Xorg, has Qt 5.10.1
Target platform: Yocto-based Linux Distro, Weston compositor with wayland backend, has Qt 5.8.0
When I launch a second app that is compiled without Qt.WindowStaysOnTopHint, it comes on top of the first app. But I want to have first one to stay always on top. I suspect this might be a Qt bug on systems that use wayland backend.
Any guidance and ideas are appreciated. Thanks