use material style for all platform
This commit is contained in:
parent
2ab79a26fb
commit
2ea7acfb7a
|
@ -13,6 +13,7 @@ find_package(Qt6 REQUIRED COMPONENTS
|
|||
Widgets
|
||||
Network
|
||||
Multimedia
|
||||
QuickControls2
|
||||
)
|
||||
|
||||
find_package(OpenSSL)
|
||||
|
|
|
@ -77,4 +77,5 @@ target_link_libraries(FreeKill PRIVATE
|
|||
Qt6::Widgets
|
||||
Qt6::Network
|
||||
Qt6::Multimedia
|
||||
Qt6::QuickControls2
|
||||
)
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include <QSplashScreen>
|
||||
#include <QScreen>
|
||||
#include <QFileDialog>
|
||||
#include <QQuickStyle>
|
||||
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_OS_WASM)
|
||||
static bool copyPath(const QString &srcFilePath, const QString &tgtFilePath)
|
||||
|
@ -137,6 +138,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
SHOW_SPLASH_MSG("Loading qml files...");
|
||||
QQmlApplicationEngine *engine = new QQmlApplicationEngine;
|
||||
QQuickStyle::setStyle("Material");
|
||||
|
||||
QmlBackend backend;
|
||||
backend.setEngine(engine);
|
||||
|
|
Loading…
Reference in New Issue