⬆️ ⬇️

Qt Lighthouse + Android = android-lighthouse

Lighthouse



Started porting Qt Lighthouse to Android. The port is far from being complete, but QtCore, QtNetwork, QtXml, QtSvg, QtSql are already working quite well. Next, the author plans to improve QtGui and QtMultimedia.



Here is a video from the emulator, showing some examples from the Qt distribution : Wiggly , Animated Tiles , Elastic Nodes , Tooltips .



The project is called android-lighthouse and is located on the google code , the git repository with the code lies on Gitorious (url for cloning: git: //gitorious.org/~taipan/qt/android-lighthouse.git). So far there is only one member, but since everything is completely free and open (LGPL license), anyone can join.



How?



The port is made using the NDK - native development kit, a tool that allows you to use libraries written in C ++ in Android applications. As far as I understand, the NDK itself is somewhat reworked so that Qt will normally gather. After that, everything is quite simple - the Qt application is going to the library, a small class comes to java, which makes a call from the library through JNI and that's it, the Qt code gets control.

')

It is not necessary to write the entire application on Qt, you can write only a part that will use very powerful tools from the Qt libraries and then transfer them to the GUI implemented in java. The scope for fantasy is very large indeed.



So what?



If the port is completed, it will be possible to launch applications written on Qt on android with virtually no changes, which will allow you to write simultaneously android and many other platforms with minimal effort, including Maemo, which is mentioned quite often lately here. In addition, a sufficiently large set of existing Qt software can be relatively painlessly ported to android.



It is not yet clear what will come of all this, but if you are developing android or qt development, it is definitely worth a try.

Source: https://habr.com/ru/post/84228/



All Articles