QmlApplicationEngine failed to load component qrc:/main.qml
Unsolved
Qt 6
-
Hello
Here is the QT5 code:
import QtQml 2.12 QtObject { readonly property color generalBackgroundColor: “000000” }
After migrating to Qt6 I am getting the following errors:
_TypeColors unavailable color is not a type
readonly property color generalBackgroundColor: “#000000”
-
@xavierbaez The similar code I made with Q5 is as follows.
pragma Singleton import QtQuick 2.0 QtObject { readonly property color generalBackgroundColor: “000000” }
And in Qt 6, version number is not needed. Can you try
pragma Singleton import QtQuick QtObject { readonly property color generalBackgroundColor: “000000” }