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

Errors everywhere

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 416 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.
  • G Offline
    G Offline
    GGG03
    wrote on last edited by
    #1

    I just changed computer, and installed QT. I continued my last project, which is located in OneDrive, but I don't understand why is everything red, with errors.

    85c4e91b-8331-41d0-8af1-43db2348c145-image.png

    This is just one documment, the others are like that, plaged with errors.
    Can anyone help me, thank you.
    P.S: It compiles anyways but it doesn't let me write new code confortable.

    ? 1 Reply Last reply
    0
    • G GGG03

      I just changed computer, and installed QT. I continued my last project, which is located in OneDrive, but I don't understand why is everything red, with errors.

      85c4e91b-8331-41d0-8af1-43db2348c145-image.png

      This is just one documment, the others are like that, plaged with errors.
      Can anyone help me, thank you.
      P.S: It compiles anyways but it doesn't let me write new code confortable.

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      @GGG03 Hi. have you run cmake/qmake on your new computer ? if not, this is probably the cause.

      G JonBJ 2 Replies Last reply
      0
      • ? A Former User

        @GGG03 Hi. have you run cmake/qmake on your new computer ? if not, this is probably the cause.

        G Offline
        G Offline
        GGG03
        wrote on last edited by
        #3

        @ankou29666 What do you mean with run qmake?
        I mean, I don't remember doing it when I first installed QT.

        1 Reply Last reply
        0
        • ? A Former User

          @GGG03 Hi. have you run cmake/qmake on your new computer ? if not, this is probably the cause.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @ankou29666 , @GGG03
          I don't think this is because the OP might not have done the first compilation yet.

          Only the very first error message is relevant: it cannot find #include <QWidget>. All the other errors will go once that is resolved.

          Since you say it compiles fine on the new machine I assume you have installed Qt correctly, so that Creator can find it. Check that. Check how your code completion model should be find QWidget/Qt header files. Maybe try changing the C++ code completer from clang or whatever the default is to the simpler inbuilt one, while you resolve this.

          ? 1 Reply Last reply
          0
          • JonBJ JonB

            @ankou29666 , @GGG03
            I don't think this is because the OP might not have done the first compilation yet.

            Only the very first error message is relevant: it cannot find #include <QWidget>. All the other errors will go once that is resolved.

            Since you say it compiles fine on the new machine I assume you have installed Qt correctly, so that Creator can find it. Check that. Check how your code completion model should be find QWidget/Qt header files. Maybe try changing the C++ code completer from clang or whatever the default is to the simpler inbuilt one, while you resolve this.

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @JonB I'm not 100% sure but as far as I remember I saw that same kind of problem when I got my project from windows to Mac less than a week ago.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              ChrisW67
              wrote on last edited by
              #6

              If the collection of files in the OneDrive location includes the Qt Creator generated AppLEEM_2.0.pro.user file from the other machine then it may well have Project settings that do not match your current machine. You should shut down Qt Creator, delete/rename the AppLEEM_2.0.pro.user file, restart Qt Creator and then reopen the AppLEEM_2.0.pro project file with Qt Creator.

              1 Reply Last reply
              1

              • Login

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