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!
Forum Updated to NodeBB v4.3 + New Features

Qt for Beginners is not for Qt 5.5!

Scheduled Pinned Locked Moved Unsolved General and Desktop
beginner5.5
3 Posts 3 Posters 1.3k Views 1 Watching
  • 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.
  • kahlenbergK Offline
    kahlenbergK Offline
    kahlenberg
    wrote on 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.

    JKSHJ 1 Reply Last reply
    0
    • kahlenbergK kahlenberg

      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.

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on 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

      lawrence.emkeL 1 Reply Last reply
      3
      • JKSHJ JKSH

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

        lawrence.emkeL Offline
        lawrence.emkeL Offline
        lawrence.emke
        wrote on 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