diff --git a/README.md b/README.md index ac6aadf..0914eda 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,6 @@ - [PyQt5小组](https://jq.qq.com/?_wv=1027&k=5cI3oRz) - # [Donate-打赏](Donate/) # Wiki diff --git a/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_mqltest.qmlc b/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_mqltest.qmlc index 9a23528..73608cf 100644 Binary files a/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_mqltest.qmlc and b/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_mqltest.qmlc differ diff --git a/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_qml.e4p b/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_qml.e4p index 0854c2a..9331151 100644 --- a/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_qml.e4p +++ b/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_qml.e4p @@ -1,7 +1,7 @@ - + en_US @@ -17,10 +17,13 @@ __init__.py py_mqltest.qml py_qml.py + qml_rc.py - + + qml.qrc + diff --git a/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_qml.py b/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_qml.py index 9fb18a9..c502329 100644 --- a/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_qml.py +++ b/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_qml.py @@ -13,7 +13,7 @@ from PyQt5.QtQml import * from PyQt5.QtQuick import QQuickView from Ui_py_qml import Ui_MainWindow - +import qml_rc class Dialog(QMainWindow, Ui_MainWindow): @@ -42,7 +42,7 @@ class Dialog(QMainWindow, Ui_MainWindow): self.verticalLayout.addWidget(self.container) def myengine(self): - self.engine = QQmlApplicationEngine(QUrl("py_mqltest.qml")) ; + self.engine = QQmlApplicationEngine(QUrl("qrc:/py_mqltest.qml")) ; print(self.engine.rootObjects(),"==",self.engine.rootObjects()) self.qmlWindow = self.engine.rootObjects()[0]