[Interest] #define in qml

Thiago Macieira thiago at kde.org
Tue Feb 21 19:09:05 CET 2012


On terça-feira, 21 de fevereiro de 2012 18.06.37, qtnext wrote:
> it's sure that lot of people will wait for a release version of 5.0, or
> 5.1, if there is no way to use the same source code with #ifdef ...
> Providing the way to test Qt5 before, will allow more feedback from
> users ... and a stronger release ! just my two cents !

There's nothing we can do. The language simply doesn't support it.

If you wish to test Qt 5, you need to branch off your sources anyway and begin 
porting the C++ side first. It should hopefully be quick. Once you're done, 
replace all your import statements in the QML world and change the loader 
class. Then fix up your QML code as needed.

That applies even if you don't have C++ code to begin with. That just means 
your C++ porting time will be zero.

You have to use your revision control system to keep both versions, not 
#ifdefs.

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120221/7eb02465/attachment.sig>


More information about the Interest mailing list