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

Method testSlot

QtQuick/Signals.py:116–119  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

114
115 @pyqtSlot(str, result=str) # 可以获取返回值
116 def testSlot(self, name):
117 # 被qml调用的函数
118 self.resultView.append('我被主动调用: %s' % name)
119 return str(len(name))
120
121
122if __name__ == '__main__':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected