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. Recognize all the Qt headers
Forum Updated to NodeBB v4.3 + New Features

Recognize all the Qt headers

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 2.9k 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.
  • A Offline
    A Offline
    ArbolOne
    wrote on last edited by
    #1

    I have recently installed QT5 in my Win7 machine and although Visual Studio 10 Express (VS10E) recognize all the qt headers such:
    #include <QtCore/QString>
    and
    #include <QtCore/QFile>
    it fails to recognize or locate the location of this header
    #include <QtCore/QApplication>
    or
    #include <QApplication>

    What am I missing? How can I solve this problem?

    Tia

    This is not the first time you've been here, at the end you've always lost. You create viruses and we the cure, and in this battle you've always lost.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Qt5 had some changes here. These are application classes available and their modules:

      • <QtCore/QCoreApplication>
      • <QtGui/QGuiApplication>
      • <QtWidgets/QApplication>

      (Z(:^

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeyer
        wrote on last edited by
        #3

        QApplication is not in the QtCore module, it is in QtWidgets, which additionally requires you to add <code>QT += widgets</code> to your <code>.pro</code>, as it is a seperate module now.

        Be aware that you do not need to specify the module, <code>#include <QApplication></code> is just as fine as <code>#include <QtWidgets/QApplication></code>.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          ArbolOne
          wrote on last edited by
          #4

          OKaaayyy. Well, I'd like to know the API and for that I have to hard code the apps. I don't want to use the RAD that comes with Qt5, as I said, I prefere to hard code. Are there any tutorials online that would teach how to build a complete program by hand using Visula Studio 10 Express as the IDE? not using qt quick?

          Thanks

          This is not the first time you've been here, at the end you've always lost. You create viruses and we the cure, and in this battle you've always lost.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgeyer
            wrote on last edited by
            #5

            http://qt.digia.com/Product/Learning

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              [quote author="ArbolOne" date="1357812353"]OKaaayyy. Well, I'd like to know the API and for that I have to hard code the apps. I don't want to use the RAD that comes with Qt5, as I said, I prefere to hard code. Are there any tutorials online that would teach how to build a complete program by hand using Visula Studio 10 Express as the IDE? not using qt quick?

              Thanks[/quote]

              That is almost incomprehensible to me. What exactly are you talking about? QtQuick and VisulalStudio have nothing to do with each other. You can use either QtWidgets or QtQuick, regardless of the IDE you are using. QtDesigner is also available if you prefer it to Qt Creator. There is Qt Visual Studio Add-in that enables easy Qt development in MSVS, but I think it does not work with Express edition (please check, though).

              What is this bit about hard-coding? It seems not to be connected with your initial post. To know the API, study the documentation, it's one of the best framework documentations available. Yes, there are many tutorials on that, including the docs and wikis on qt-project.org.

              (Z(:^

              1 Reply Last reply
              0
              • E Offline
                E Offline
                eMixam
                wrote on last edited by
                #7

                [quote author="sierdzio" date="1357812954"]There is Qt Visual Studio Add-in that enables easy Qt development in MSVS, but I think it does not work with Express edition (please check, though).[/quote]

                I used it quite recently for one of my project and I can say yes, you need the commercial version of MSVS to use Qt VS add-in.

                1 Reply Last reply
                0

                • Login

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