Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt for Beginners is not for Qt 5.5!

Qt for Beginners is not for Qt 5.5!

Scheduled Pinned Locked Moved Unsolved General and Desktop
beginner5.5
3 Posts 3 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kahlenberg
    wrote on 24 Nov 2015, 14:49 last edited by
    #1

    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.

    J 1 Reply Last reply 24 Nov 2015, 14:57
    0
    • K kahlenberg
      24 Nov 2015, 14:49

      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.

      J Offline
      J Offline
      JKSH
      Moderators
      wrote on 24 Nov 2015, 14:57 last edited by JKSH
      #2

      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 !]

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      L 1 Reply Last reply 26 Jul 2020, 23:39
      3
      • J JKSH
        24 Nov 2015, 14:57

        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 !]

        L Offline
        L Offline
        lawrence.emke
        wrote on 26 Jul 2020, 23:39 last edited by lawrence.emke
        #3

        @JKSH said in Qt for Beginners is not for Qt 5.5!:

        http://doc.qt.io/qt-5/gettingstartedqt.html

        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

        1 Reply Last reply
        3

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved