aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols2
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols2')
-rw-r--r--src/quickcontrols2/qquickstyle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quickcontrols2/qquickstyle.cpp b/src/quickcontrols2/qquickstyle.cpp
index a7349915..9f101273 100644
--- a/src/quickcontrols2/qquickstyle.cpp
+++ b/src/quickcontrols2/qquickstyle.cpp
@@ -589,6 +589,8 @@ void QQuickStyle::addStylePath(const QString &path)
if (url.isRelative() || url.scheme() == QLatin1String("file")
|| (url.scheme().length() == 1 && QFile::exists(path)) ) { // windows path
styleSpec()->customStylePaths.prepend(QDir(path).canonicalPath());
+ } else if (url.scheme() == QLatin1String("qrc")) {
+ styleSpec()->customStylePaths.prepend(QLatin1Char(':') + url.path());
} else {
styleSpec()->customStylePaths.prepend(path);
}