[Interest] #define in qml

Konstantin Tokarev annulen at yandex.ru
Tue Feb 21 19:16:09 CET 2012



21.02.2012, 22:09, "Thiago Macieira" <thiago at kde.org>:
> 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.

Wouldn't it be possible to enable simple version comparison like e.g.

if (QtQuick.Version < 2) {
// some code
} else {
// other code
}

?

-- 
Regards,
Konstantin



More information about the Interest mailing list