Qt for Beginners is not for Qt 5.5!



  • Hi,
    I am newbee for Qt, I have found very useful page on https://wiki.qt.io/Qt_for_Beginners but it seems it is only for Qt 4.8, for example
    in the very first code example it says #include <QApplication>, but in Qt 5.5 it is #include <QtCore/QCoreApplication>. I dont want to waste time for searching compatible syntax for Qt5.5
    Where can I find "new and fresh" tutorial for beginners for Qt 5.5?

    Thanks.


  • Moderators

    Hi @kahlenberg,

    I am newbee for Qt, I have found very useful page on https://wiki.qt.io/Qt_for_Beginners but it seems it is only for Qt 4.8, for example
    in the very first code example it says #include <QApplication>, but in Qt 5.5 it is #include <QtCore/QCoreApplication>.

    Qt 5.5 uses #include <QApplication> too.

    Scroll down the wiki article, and you'll see the line greaterThan(QT_MAJOR_VERSION, 4): QT += widgets. Add this, and the article should work for Qt 5.5. (However, I would still recommend an official guide, instead of the wiki).

    Where can I find "new and fresh" tutorial for beginners for Qt 5.5?

    You can find an official beginners' guide at http://doc.qt.io/qt-5/gettingstartedqt.html


Log in to reply
 

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