fix error
This commit is contained in:
parent
f5c972fa8d
commit
3251d2eaae
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ if __name__ == '__main__':
|
|||
app = QApplication(sys.argv)
|
||||
engine = QQmlApplicationEngine()
|
||||
engine.objectCreated.connect(
|
||||
lambda obj, _: (QMessageBox.critical(None, '错误', '运行失败,可能是当前PyQt版本不支持'), engine.quit()) if not obj else 0)
|
||||
lambda obj, _: (QMessageBox.critical(None, '错误', '运行失败,可能是当前PyQt版本不支持'), engine.quit) if not obj else 0)
|
||||
engine.addImportPath('imports')
|
||||
engine.load(QUrl('flatstyle.qml'))
|
||||
|
||||
|
|
Loading…
Reference in a new issue