无
This commit is contained in:
parent
6b7fcaaf13
commit
2f18d370af
4 changed files with 7 additions and 5 deletions
|
@ -68,7 +68,6 @@
|
|||
- [PyQt5小组](https://jq.qq.com/?_wv=1027&k=5cI3oRz)
|
||||
|
||||
|
||||
|
||||
# [Donate-打赏](Donate/)
|
||||
|
||||
# Wiki
|
||||
|
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE Project SYSTEM "Project-5.1.dtd">
|
||||
<!-- eric project file for project py_qml -->
|
||||
<!-- Saved: 2018-04-16, 21:55:09 -->
|
||||
<!-- Saved: 2018-04-17, 01:40:55 -->
|
||||
<!-- Copyright (C) 2018 , -->
|
||||
<Project version="5.1">
|
||||
<Language>en_US</Language>
|
||||
|
@ -17,10 +17,13 @@
|
|||
<Source>__init__.py</Source>
|
||||
<Source>py_mqltest.qml</Source>
|
||||
<Source>py_qml.py</Source>
|
||||
<Source>qml_rc.py</Source>
|
||||
</Sources>
|
||||
<Forms/>
|
||||
<Translations/>
|
||||
<Resources/>
|
||||
<Resources>
|
||||
<Resource>qml.qrc</Resource>
|
||||
</Resources>
|
||||
<Interfaces/>
|
||||
<Others/>
|
||||
<Vcs>
|
||||
|
|
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue