[Interest] Is is possible to connect QML signals to C++ slot using new syntax?
Thiago Macieira
thiago.macieira at intel.com
Fri Jun 27 05:29:41 CEST 2014
Em sex 27 jun 2014, às 02:41:05, 程梁 escreveu:
> In the documents I read about Connecting to QML Signals. Connect QML signals
> to C++ slot still using old syntax. Is it possible to connect QML signals
> to C++ slot using new syntax? The problem is QML item type is dynamic so
> cannot get its signals pointers.
There you go, you answered your question.
The new syntax requires an existing C++ member for a signal at the time of the
compilation of the C++ source code.
So, unless someone writes a QML-to-C++ generator, this will never work.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list