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.
-
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.
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/gettingstarted.html [EDIT: Link updated. Thanks, @lawrence-emke !]
-
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/gettingstarted.html [EDIT: Link updated. Thanks, @lawrence-emke !]
@JKSH said in Qt for Beginners is not for Qt 5.5!:
FYI
This link: https://doc.qt.io/qt-5/gettingstartedqt.html
now results in a 404 error.
Note: only a slight change: drop the "qt" just before the .html
Try a new link: https://doc.qt.io/qt-5/gettingstarted.html