Learning qt5 and qml on android tablet with c4 droid

  • 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);
    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

    P.s. do I need to purchase the full version for all this?

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    For your question A, use

    #include <QApplication>
    #include <QLabel>

    Though the basics are the same, Qt 3 examples might contain classes long gone since Qt 4. However most Qt 4 example translate easily to Qt 5.

    For question B, Qt's documentation and sources.

    What purchase are you asking about ? c4droid ?

  • Yes c4droid
    i just wanna be able to learn on the go

  • What are some good plug ins for c4droid?

  • Lifetime Qt Champion

    For these two questions, you should rather contact the c4droid developer(s)

Log in to reply