Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. SOLVED: error: C1083: Cannot open include file: 'QtApplication': No such file or directory
Qt 6.12 LTS is out! See what's new in the release blog

SOLVED: error: C1083: Cannot open include file: 'QtApplication': No such file or directory

Scheduled Pinned Locked Moved Installation and Deployment
15 Posts 2 Posters 14.2k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #6

    There is also a Forms file, but I have no idea how to copy it to here.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #7

      I stuck the @@'s in there, but they didn't come out in the sent response. Is that normal?

      1 Reply Last reply
      0
      • p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #8

        As i said earlier you must include <QApplication> instead of <QtApplication> in your main.cpp.
        No need to paste the form file. You have used the Code tags properly now.

        157

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #9

          I thought I tried that before. I did it now and also changed the QtDialog to Qdialog and it compiled. Thanks!!

          Did I get the @@ part right for posting code?

          Again, THANKS!

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #10

            Disregard my last. The part of your message about the @@ code didn't come thru on the original. It only posted after I replied.

            1 Reply Last reply
            0
            • p3c0P Offline
              p3c0P Offline
              p3c0
              Moderators
              wrote on last edited by
              #11

              You got it right about the code tags. Also if you think your problem is solved you can edit the thread title and prepend [solved] so that others understand that the thread is solved.

              157

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #12

                Done. Thanks!

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #13

                  After the problem was resolved last night thanks to p3c0, I got to thinking. Was the cause due to a "Type-o" in the book, or is Qt 5.3 using new, libraries or changed names of files for the newest version?

                  I've looked through the documentation on this site and haven't found anything that addresses that question.

                  1 Reply Last reply
                  0
                  • p3c0P Offline
                    p3c0P Offline
                    p3c0
                    Moderators
                    wrote on last edited by
                    #14

                    It should be a typo.
                    I just download the examples from "here":http://www.informit.com/content/images/9780132354165/examples/qt-book-examples.zip and referring to the chap02>gotocell1>main.cpp i see there's no <QtApplication> but <QApplication>
                    But since Qt5 widgets is a separate module and thus you need to include
                    @
                    QT += widgets
                    @

                    in your application. And probably those examples had been coded as per Qt4.
                    To get Qt5 port for these examples you can refer this "github":https://github.com/mutse/qt5-book-code link.

                    157

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #15

                      Thanks, that will probably answer a lot of my questions after I finish reading all the literature!

                      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
                      • Unsolved