mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 10:43:21 +02:00
Fix crash using Settings in the Tablet in VR
This was introduced in Qt5.12.3. There are several issues in their bug tracker about this issue. https://bugreports.qt.io/browse/QTBUG-75516 https://bugreports.qt.io/browse/QTBUG-75335 To workaround this, we call Qt.createComponent() manually, instead of letting StackView do it for us.
This commit is contained in:
parent
1e827a925a
commit
00bba828ee
1 changed files with 4 additions and 1 deletions
|
@ -49,7 +49,10 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function pushSource(path) {
|
function pushSource(path) {
|
||||||
d.push(Qt.resolvedUrl("../../" + path));
|
// Workaround issue https://bugreports.qt.io/browse/QTBUG-75516 in Qt 5.12.3
|
||||||
|
// by creating the manually, instead of letting StackView do it for us.
|
||||||
|
var item = Qt.createComponent(Qt.resolvedUrl("../../" + path));
|
||||||
|
d.push(item);
|
||||||
if (d.currentItem.sendToScript !== undefined) {
|
if (d.currentItem.sendToScript !== undefined) {
|
||||||
d.currentItem.sendToScript.connect(tabletMenu.sendToScript);
|
d.currentItem.sendToScript.connect(tabletMenu.sendToScript);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue