Details
-
Bug
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
5.11.1
-
None
-
Windows 10
Description
I have Loader with Window as source component which interrupts (minimizes) fullscreen games when the Loader is activated. I wrote example that allows to reproduce issue:
import QtQuick 2.7 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.0 import QtQuick.Window 2.0 ApplicationWindow { visible: true width: 640 height: 480 property bool visibleViaLoader: true ColumnLayout { anchors.centerIn: parent spacing: 10 Button { text: qsTr("Show/Hide tooltip window") onClicked: { if (visibleViaLoader) { loader.active = !loader.active } else { loader.item.visible = !loader.item.visible// } } } Button { text: qsTr("Show tooltip window by timer") onClicked: timer.start() } } Loader { id: loader visible: status == Loader.Ready active: !visibleViaLoader sourceComponent: Window { visible: visibleViaLoader flags: Qt.WindowDoesNotAcceptFocus | Qt.ToolTip | Qt.WindowStaysOnTopHint width: 100 height: 100 Rectangle { anchors.fill: parent color: "green" } } } Timer { id: timer interval: 10000 repeat: false onTriggered: { if (visibleViaLoader) { loader.active = true } else { loader.item.visible = true } } } }
Instead of a game you can use attached DirectXApp.cpp.
How to reproduce this issue:
1. Run DirectXApp application
2. Run QML example mentioned above
3. Click `Show tooltip window by timer`
4. Go back to DirectXApp application and switch to full screen mode using Alt+Enter combination
5. Wait ~10 secs
Actual Results:
The DirectXApp is minimized
Expected Results:
The DirectXApp is not minimized when Loader is activated.
But if you change property visibleViaLoader to false in QML it will fix the issue.