On terça-feira, 21 de fevereiro de 2012 16.55.02, henry.haveri...@nokia.com
wrote:
> Another common case for #ifdefs is configuration management in
> cross-platform projects.
> It's not always possible to port a project to a new platform and never
> look back. :-)

That's not how you're supposed to solve this problem with QML.

If you need platform-specific functionality or changes, your options are:

 - do it in C++ and leave the QML world unaware of it
 - expose a property from C++ into the QML world and operate on that
 - load different QML sources from the C++ world

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to