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.


  • Lifetime Qt Champion

    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 also

    Thank 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 also

    Thank 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.

    1. Download QT 5.3 and install on a desktop computer.
    2. Copy the Examples Folder onto a Android device
    3. Launch C4Droid
    4. File->Open and navigate to Examples/Qt-5.3/gui/rasterwindow folder
    5. select and open main.cpp
    6. select Compilation settings and under Compilation mode: select Use Make file.
    7. Under Result binary filename: type librasterwindow.so
    8. Under Select run mode select Qt Application and press ok.
    9. 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.so

    These 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.

    1. Download QT 5.3 and install on a desktop computer.
    2. Copy the Examples Folder onto a Android device
    3. Launch C4Droid
    4. File->Open and navigate to Examples/Qt-5.3/gui/rasterwindow folder
    5. select and open main.cpp
    6. select Compilation settings and under Compilation mode: select Use Make file.
    7. Under Result binary filename: type librasterwindow.so
    8. Under Select run mode select Qt Application and press ok.
    9. 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.so

    These 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.