Posts

QML and Android emulator OpenGL error

Image
Lately, after an Android emulator image update, a strange error regarding OpenGL is coming up using official Android emulator. This error refer to some OpenGL failed operation and, as consequence, doesn't allow the app to run correctly. QML make a large use of OpenGL that's mean each app developed using this technology doesn't work anymore (on the emulator).

QML: Show animated splash screen at startup

Image
QML is a great way to make nice interfaces but, currently, suffer a bit in the initial phase of loading since it could take some time if your QML code is complex or there are many image resources to load. In this case show a splash screen can be a good way to "inform" the user the app is started. More better have an animation will inform also the app is alive and still loading.

Qt Creator: include additional files inside Android apk

Image
Developing an app for Android frequently require to include some additional files containing custom data used by the app itself (in majority of cases sqlite database files). Android provide a standard way by using a special folder called assets where these kind of files need to be stored. Qt Creator provide a instructions to use for copy these files during apk creation.

QML Snippet: Flickable TextArea and Material style problem

Image
Make a TextArea control flickable is a very easy task using new version 2 of QtQuick controls. However when Material style was applied it show a line on bottom side of control that, in case of full window edit control, is not so good to view.

QML: Manage application state on mobile systems

Image
Develop app for mobile systems like Android or iOS require some additional steps compared to standard Desktop systems. One of the most important is to correctly manage the state change of your app. This is critical for avoid the app to consume CPU and battery when is not required.

Qt on Visual Studio and QML translation files

Image
Develop a Qt application using Visual Studio is possible through the Qt plugin. This plugin manage the basic settings for use Qt libraries inside a VS project. With a limited support is possible to develop QML application but it miss the syntax highlight of QML code and some other features available using Qt Creator.

QML and Android back button

Image
QML and Qt Quick controls allow a very rapid development also mainly for mobile devices. However mobile devices require some additional code for manage special system buttons. In this post we discuss about how to manage the Android back button using QML.