[Qt-interest] Some questions about QML

kai.koehne at nokia.com kai.koehne at nokia.com
Tue Nov 3 16:34:00 CET 2009


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




More information about the Qt-interest-old mailing list