|
查阅了http://doc.qt.io/qt-5/qtqml-syntax-signals.html中下面一段说明,看来signal的处理的写法确实是固定格式。 over
Receiving Signals with Signal Handlers
To receive a notification when a particular signal is emitted for a particular object, the object definition should declare a signal handler named on<Signal> where <Signal> is the name of the signal, with the first letter capitalized. The signal handler should contain the JavaScript code to be executed when the signal handler is invoked.
|
|