[Interest] Is is possible to connect QML signals to C++ slot using new syntax?

程梁 devbean at outlook.com
Fri Jun 27 12:21:37 CEST 2014


Thank you! I understand it.

Best regards,
Cheng Liang
Nanjing, China
http://www.devbean.net

> From: thiago.macieira at intel.com
> To: interest at qt-project.org
> Date: Thu, 26 Jun 2014 20:29:41 -0700
> Subject: Re: [Interest] Is is possible to connect QML signals to C++ slot	using new syntax?
> 
> 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
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140627/2b19516e/attachment.html>


More information about the Interest mailing list