I'm starting to study QT, question inside :)
-
HI :)
I have posted a question on this forum related at Unity and QT, but now I ask you if you can suggest me a guide for learn QT programming :DI know C++ and I want to study QT for do a multiplatform app :)
I want to do an android app , but before to study qt I want to do some question for understand if QT is adapt for do what I want to do :)
With QT We can use all android's API ?
If a library is compatible with QT is automatically compatible with android ?Because I know use android framework, but is interesting to do an multiplatform app without I have to know Window phone's programming language or IOS programming language ;)
-
For basics, I recommend the Qt book ("link":http://qt-project.org/books/view/c_gui_programming_with_qt_4_2nd_edition_the_official_c_qt_book), or a newer one: "link":http://qmlbook.org/.
Android is Java-based, and Qt is C++. There are ways to use the Android API, but it is not very straightforward.
[quote]If a library is compatible with QT is automatically compatible with android ?[/quote]
No. Only official Qt modules are required to run on all primary platforms. Even official add-on modules do not have that requirement. You need to the library documentation, or ask the developers to be sure.
-
Android provides two ways to create android application
- Android SDk
- Android NDK
Qt internally uses Android NDK and it is C++ based .
If a library is compatible with QT is automatically compatible with android ?
Some of the Qt libraries are compatible with android and some are not for e.g. Qt WebKit, Qt NFC, Qt Serial Port these modules are Qt modules are not supported :(Thanks & Regards
Bibin -
Hi,
Just some additional information:
QSerialPort on Android is officially supported since 5.3
WebKit is another problem, since AFAIK, it can't be built due to dependencies missing on Android. But you should be able to use a native web element if you need it. On iOS, it's one of the store rules that you can't use an external version of WebKit so again you have to use a native element.
Currently the NFC module only has support for BlackBerry
On a side not, it's Qt, QT stands for Apple QuickTime (that you might also want to learn ;))
-
Thanks :)
Now I start to read this" http://qmlbook.org/ch01/index.html#preface":http://qmlbook.org/ch01/index.html#preface
(qml and qt is the same thing O.o )My target is do an android app, and the problem are two :
-
in this app I have to plot a graph in real time
and for do this I thought to use QTcustomplot, but i don't know if are compatible with android. -
I have to animate a rigged model and for do this I need to use a 3d library , but on QT I think is difficult , right ?
Last question :
- is possible to merge part of application write in QT library and part of application write with Android framework ?
Thanks you very much :) You are the best :)
-
-
[quote author="aeroxr1" date="1401197297"](qml and qt is the same thing O.o )[/quote]
Not really, no. But you can start with assumption they are, and change it later ;-)
QML is a language for rapid, modern and extremely easy implementation of User Interfaces. Qt offers much more than that: the classic QWidgets, lots of core capabilities (strings, regular expressions, date and time, command line), database connections, XML and JSON handling, etc.
[quote]in this app I have to plot a graph in real time
and for do this I thought to use QTcustomplot, but i don't know if are compatible with android.[/quote]You indeed need to check that yourself (ask the author, maybe?), but if they are using QPainter or the scenegraph to paint the plot, then it is most probably compatible with Android.
[quote]I have to animate a rigged model and for do this I need to use a 3d library , but on QT I think is difficult , right?[/quote]
Qt already offers a lot of OpenGL classes. And it will receive a major boost in that area in 5.4 or 5.5, by adding Qt3D module (you can check out the WIP version on Gitorious, the code is already available).
[quote]is possible to merge part of application write in QT library and part of application write with Android framework?[/quote]
It is possible, although not necessarily easy. But perhaps I am wrong - I have not done that myself yet.
-
"You indeed need to check that yourself (ask the author, maybe?), but if they are using QPainter or the scenegraph to paint the plot, then it is most probably compatible with Android."
Yes, I sent e-mail to the author, now I'm also looking for other libraries for real time plot. For now I found nothing .
For the 3d OpenGL ES are compatible with android, but i think is more difficult to move a rigged model with OpenGL ES, because online there aren't a lot of tutorials :/