MCPcopy Create free account
hub / github.com/PyQt5/PyQt / callQmlFunc

Method callQmlFunc

QtQuick/Signals.py:106–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

104 self.timerSignal.emit('定时器发来:' + str(time()))
105
106 def callQmlFunc(self):
107 # 主动调用qml中的appendText函数
108 engine.rootObjects()[0].appendText('我是被Python调用了')
109
110 @pyqtSlot(int)
111 def onValueChanged(self, value):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected