1

Possible Duplicate:
C++ SIGNAL to QML SLOT in Qt

How can I send signals from C++ to QML? I have no problems using Connect() to connect signals from QML to a SignalHandler in C++. But is there any way to do it the other way around? I have been trying to get that to work but QML says Unknown Signal when creating a signal handler in QML.

So I would like to in C++ emit a signal:

emit mySignal();

In QML receive the signal:

onMySignal:
{

}

Thanks!

Community
  • 1
  • 1
Michael
  • 11
  • 1

0 Answers0