check Qt Mobility Version number
check Qt Mobility Version number
Thank's
Patel Rakesh
Code:qDebug() << QTM_VERSION_STR << QT_VERSION_STR;
... and remember that it's a compile-time check, not runtime check.
There is a runtime check in QSystemInfo for version later than 1.1
QSystemInfo::version(QSystemInfo::QtMobility); will return a string.
Code Monkey, QtMobility, Nokia
How do you check for that at runtime?![]()
Just out of curiosity, what is the use case for that (apart from informative/support purposes) ? You're not using a dynamic programming language, so even though you have things like the meta-object thing and introspection, the gains are very limited and offset by a lot of code complexity...
The problem with runtime is that ld will abort() you application as fast as it will be able to find out that your application is using Qt Mobility 1.1 symbols on system with Qt Mobilty 1.0.2. The only way to avoid such unfortunate situation is to use Qt Mobility trough QLibrary.