mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 19:44:59 +00:00
feat: change qml dir
This commit is contained in:
parent
28ed531cbb
commit
960fccda8c
5 changed files with 10 additions and 2 deletions
|
@ -215,5 +215,9 @@ linux {
|
|||
# message("test")
|
||||
|
||||
RESOURCES += \
|
||||
qml.qrc \
|
||||
res/res.qrc
|
||||
|
||||
DISTFILES += \
|
||||
MainWindow.qml
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ int main(int argc, char *argv[])
|
|||
g_oldMessageHandler = qInstallMessageHandler(myMessageOutput);
|
||||
Stream::init();
|
||||
QApplication app(argc, argv);
|
||||
QQmlApplicationEngine engine("qrc:/qml/MainWindow.qml");
|
||||
QQmlApplicationEngine engine("qrc:/MainWindow.qml");
|
||||
|
||||
// windows下通过qmake VERSION变量或者rc设置版本号和应用名称后,这里可以直接拿到
|
||||
// mac下拿到的是CFBundleVersion的值
|
||||
|
|
5
QtScrcpy/qml.qrc
Normal file
5
QtScrcpy/qml.qrc
Normal file
|
@ -0,0 +1,5 @@
|
|||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>MainWindow.qml</file>
|
||||
</qresource>
|
||||
</RCC>
|
|
@ -24,7 +24,6 @@
|
|||
<file>qss/psblack/radiobutton_unchecked_disable.png</file>
|
||||
<file>i18n/QtScrcpy_en.qm</file>
|
||||
<file>i18n/QtScrcpy_zh.qm</file>
|
||||
<file>qml/MainWindow.qml</file>
|
||||
<file>image/mainwindow/bg.png</file>
|
||||
<file>image/mainwindow/bg@2x.png</file>
|
||||
<file>image/mainwindow/bg@3x.png</file>
|
||||
|
|
Loading…
Add table
Reference in a new issue