Details
Description
Using QML_DISABLE_DISK_CACHE breaks QML code
When setting QML_DISABLE_DISK_CACHE=true mutliple examples from Qt Design Studio break with Qt 6.7.
See QDS-12264 for details on the Qt Design Studio side.
The issue is related to the stage propperty of QtQuick3D.Shader.
The following (and similar) code does not work anymore if the cache is disabled:
Shader {
id: colormaster
stage: Shader.Fragment
shader: "qrc:/qtquick3deffects/shaders/colormaster.frag"
}
Settting QML_DISK_CACHE=aot trigers the same issue.
This is the error message:
Warning: QQmlApplicationEngine failed to create component ((null):0, (null)) Warning: qrc:/qt-project.org/imports/QtQuick3D/Effects/ColorMaster.qml:15:9: Cannot assign value 1 to property stage (qrc:/qt-project.org/imports/QtQuick3D/Effects/ColorMaster.qml:15, (null))
Attachments
Issue Links
- relates to
-
QDS-12264 Errors with Quick3D effects in examples
- Closed
For Gerrit Dashboard: QTBUG-123428 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
548745,6 | Handle more potential underlying types | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
548876,2 | Handle more potential underlying types | 6.7.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
548877,2 | Handle more potential underlying types | 6.6.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
548878,2 | Handle more potential underlying types | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
548879,2 | Handle more potential underlying types | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |