From 820227a86c3b938792384279a487f1ab0dd070d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 6 Apr 2023 09:12:41 +0800 Subject: Initial settings will be read from qtquickcontrols2.conf --- bootstrap.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstrap.cxx b/bootstrap.cxx index 7a03b8f..6f01ab1 100644 --- a/bootstrap.cxx +++ b/bootstrap.cxx @@ -2,11 +2,14 @@ Bootstrap::Bootstrap(QObject *parent): QObject(parent), - bs_mode(LightMode), bs_theme(None), bs_lightBodyBg("#fff"), bs_darkBodyBg("#212529") { + QFile conf{QStringLiteral(":/qtquickcontrols2.conf")}; + conf.open(QFile::ReadOnly | QFile::Text); + qDebug() << conf.readAll(); + conf.close(); } Bootstrap *Bootstrap::qmlAttachedProperties(QObject *object) -- cgit v1.2.3