[Qt-interest] Some questions about QML
Jabot Corentin
corentin.jabot at gmail.com
Tue Nov 3 16:38:07 CET 2009
Great, really great ! Thanks you !
2009/11/3 <kai.koehne at nokia.com>
> qt-interest-bounces at trolltech.com wrote:
> > Oh, thanks. I didn'nt know that we can emit signal like this,
> > it's really great. Can we add slots by the same way ? I found
> > nothing about that in the documentation.
>
> This is already possible:
>
> import Qt 4.6
> Item {
> // ...
> function slot() {
> // slot handler
> }
> }
>
> You can now write something like
>
> connect(XXX, SIGNAL(XXX), rootItem, SLOT(slot());
>
> in C++
>
> Regards
>
> Kai Koehne
>
>
> --
> Kai Köhne
> Software Engineer
> Nokia, Qt Development Frameworks
>
> Nokia gate5 GmbH
> Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
> Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443B
> Umsatzsteueridentifikationsnummer: DE 812 845 193
> Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091103/b18a28b5/attachment.html
More information about the Qt-interest-old
mailing list