Posts

QML: Get Android apk package info

Image
All the information stored inside apk AndroidManifest.xml file can be extracted using dedicated Android API. Using JNI through C++ Qt layer is possible to get these info and pass them to the QML level.



QML: Mixed native Android and QML animated splash screen

Image
In this blog two methods for show a splash screen has been proposed. One is based to pure QML code and show animations and the second is native Android way but static. Now a third method mixing both previous solution by allow a partially animated splash screen is proposed.


Merge multiple Subversion repositories into a single Git repository

Image
If you want to move your subversion repository to a git repository already exist tools make this porting in an easy way. But if you want to move and merge more than one subversion repositories into a single git repository you have mo make some manual steps.

Qt Creator: set dependencies between subprojects

Image
In case your project is divided in some subprojects like, the typical case, a main app plus a library you have to be sure, when you make some change into the library, also the main app is automatically recompiled for "integrate" the new changes of the library. This operation can be done by set a dependency between the library and the app.


Qt: Load resources from static or shared library

Image
Usually Qt resource file (.qrc) is embedded inside the main executable file for automatic access without any additional operation. Just compile and you have access to the resources from any point of the code by using the special path prefix required for the resource virtual file system. However, if required, is also possible to load resources from static or shared libraries with a minimal efforts.

QML: Change Android screen orientation programmatically

Image
In case your Android app require to dynamically set screen orientation for some particular interface is possible to directly call the system API allowing to choose one of the two standard orientations LANDSCAPE or PORTRAIT.


Visual Studio 2015 required executable runtime libraries

Image
Once finished to develop your software final step is start to release the installation package. Executable generated by Visual Studio compiler require some additional libraries called runtimes allowing to software to run correctly. You have to provide these libraries in your installation package for allow your software to run in each machine without problems.