C4Droid - Compile & run Qt 5.3 using only Android Phone/Tablet!
-
I have been exploring QT for a couple weeks and have noticed that C4Droid can compile & run many of the examples from the QT 5.3 SDK.
I'm especially impressed that the Opengl ES examples work.
"Play store link":https://play.google.com/store/apps/details?id=com.n0n3m4.droidc&hl=en_GB
So go ahead and try it!
I'm not the Author just a fan.
-
Hi and welcome to devnet,
Interesting ! Thanks for sharing ! :)
-
Hello!
I'm using C4droid and learning qt for the first time. I just want to know if:
A. Could I still use qt 3 or qt 4 gui and programming examples? The reason I ask because I typed in this basic of all codes example@#include <qapplication.h>
#include <qlabel>int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!", 0);
app.setMainWidget(label);
label->show();
return app.exec();
}@And got this Message:
No such file or directory #include <qapplication.h>I even tryed to remove the dot h and still the same results
question B.
Where can I get all the examples on qt 5.3 Gui desidn and programming and also tutorials on how to intergrate c++ code with qml code alsoThank You
AO! -
Hello!
I'm using C4droid and learning qt for the first time. I just want to know if:
A. Could I still use qt 3 or qt 4 gui and programming examples? The reason I ask because I typed in this basic of all codes example@#include <qapplication.h>
#include <qlabel>int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!", 0);
app.setMainWidget(label);
label->show();
return app.exec();
}@And got this Message:
No such file or directory #include <qapplication.h>I even tryed to remove the dot h and still the same results
question B.
Where can I get all the examples on qt 5.3 Gui desidn and programming and also tutorials on how to intergrate c++ code with qml code alsoThank You
AO! -
Hi Sorry for replying late,
I'm also learning this great toolkit.
What I did was Download QT and install it on PC and then copy all the examples onto Android SDCard and try to get them to run most will actually compile and run.
Lets go through the steps.
- Download QT 5.3 and install on a desktop computer.
- Copy the Examples Folder onto a Android device
- Launch C4Droid
- File->Open and navigate to Examples/Qt-5.3/gui/rasterwindow folder
- select and open main.cpp
- select Compilation settings and under Compilation mode: select Use Make file.
- Under Result binary filename: type librasterwindow.so
- Under Select run mode select Qt Application and press ok.
- press Run.
note that under Result binary filename: you most prefix it with lib and the folder the code resides in.followed by .so
So for gui/openglwindow you would enter libopenglwindow.soThese examples are on the present shipping QT release so I would use and learn by them.
Also the new Canvas3D works on android too but you have to compile that yourself at the moment.
-
Hi Sorry for replying late,
I'm also learning this great toolkit.
What I did was Download QT and install it on PC and then copy all the examples onto Android SDCard and try to get them to run most will actually compile and run.
Lets go through the steps.
- Download QT 5.3 and install on a desktop computer.
- Copy the Examples Folder onto a Android device
- Launch C4Droid
- File->Open and navigate to Examples/Qt-5.3/gui/rasterwindow folder
- select and open main.cpp
- select Compilation settings and under Compilation mode: select Use Make file.
- Under Result binary filename: type librasterwindow.so
- Under Select run mode select Qt Application and press ok.
- press Run.
note that under Result binary filename: you most prefix it with lib and the folder the code resides in.followed by .so
So for gui/openglwindow you would enter libopenglwindow.soThese examples are on the present shipping QT release so I would use and learn by them.
Also the new Canvas3D works on android too but you have to compile that yourself at the moment.