Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Issue] Qt Creator doesn't allow me to add files to projects, only the .pro file
QtWS25 Last Chance

[Issue] Qt Creator doesn't allow me to add files to projects, only the .pro file

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
errorissue
9 Posts 2 Posters 3.0k 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.
  • R Offline
    R Offline
    rogerccs
    wrote on 19 Jun 2023, 22:38 last edited by rogerccs
    #1

    I installed Qt Creator this week, I'm trying to make it work.

    After I start a project, namely a Empty qmake Project, I want to add source files. Yet the options for adding files to the project are disabled.

    Also, when I open Examples, only the .pro file appears on the project and I get 3 Issues messages:

    1. Variable QMAKE_CXX.COMPILER_MACROS is not defined. toolchain.prf
    2. Project ERROR: failed to parse default search paths from compiler output
    3. Error while parsing file /path/to/example . Giving up.

    How can I fix this issue? Help is very welcome. Thank you.

    I'm using Qt Creator 4.14.2 on a Windows 7, with Qt 5.15.2.

    Have a nice day.

    S 1 Reply Last reply 20 Jun 2023, 05:13
    0
    • R rogerccs
      19 Jun 2023, 22:38

      I installed Qt Creator this week, I'm trying to make it work.

      After I start a project, namely a Empty qmake Project, I want to add source files. Yet the options for adding files to the project are disabled.

      Also, when I open Examples, only the .pro file appears on the project and I get 3 Issues messages:

      1. Variable QMAKE_CXX.COMPILER_MACROS is not defined. toolchain.prf
      2. Project ERROR: failed to parse default search paths from compiler output
      3. Error while parsing file /path/to/example . Giving up.

      How can I fix this issue? Help is very welcome. Thank you.

      I'm using Qt Creator 4.14.2 on a Windows 7, with Qt 5.15.2.

      Have a nice day.

      S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 20 Jun 2023, 05:13 last edited by
      #2

      @rogerccs Why do you try with such an ancient version of Qt and Qt Creator?

      Anyway, the 3 errors you mention sound like you are missing a compiler. On windows, 2 main compilers are not compatible (MinGW vs. MSVC) so you have to get the correct version of Qt for your compiler. Otherwise it won't work.

      (Z(:^

      R 1 Reply Last reply 20 Jun 2023, 10:02
      2
      • S sierdzio
        20 Jun 2023, 05:13

        @rogerccs Why do you try with such an ancient version of Qt and Qt Creator?

        Anyway, the 3 errors you mention sound like you are missing a compiler. On windows, 2 main compilers are not compatible (MinGW vs. MSVC) so you have to get the correct version of Qt for your compiler. Otherwise it won't work.

        R Offline
        R Offline
        rogerccs
        wrote on 20 Jun 2023, 10:02 last edited by rogerccs
        #3

        @sierdzio I believe these (Qt Creator 4.14.2 and Qt 5.15.2) are the compatible versions of Qt Creator and Qt for Windows 7.

        The kit I'm using has the following specs:

        1. Qt version: 5.15.2 (manually added by chossing qmake.exe in mingw81_64 directory)
        2. Compilers: for C and C++ are in the bin for MinGW 7.3 (Auto-detected)
        3. Debugger: System GDB from MinGW 7.3 (Auto-detected)

        Note 1: Was unable to link the Qt directory for Auto-detection of Qt version
        Note 2: I have another issue, might be related or I might start another thread about it: Whenever I try to Open Command Prompt, Qt Creator stops working (crashes) and I have to restart Qt Creator.

        R S 2 Replies Last reply 20 Jun 2023, 13:14
        0
        • R rogerccs
          20 Jun 2023, 10:02

          @sierdzio I believe these (Qt Creator 4.14.2 and Qt 5.15.2) are the compatible versions of Qt Creator and Qt for Windows 7.

          The kit I'm using has the following specs:

          1. Qt version: 5.15.2 (manually added by chossing qmake.exe in mingw81_64 directory)
          2. Compilers: for C and C++ are in the bin for MinGW 7.3 (Auto-detected)
          3. Debugger: System GDB from MinGW 7.3 (Auto-detected)

          Note 1: Was unable to link the Qt directory for Auto-detection of Qt version
          Note 2: I have another issue, might be related or I might start another thread about it: Whenever I try to Open Command Prompt, Qt Creator stops working (crashes) and I have to restart Qt Creator.

          R Offline
          R Offline
          rogerccs
          wrote on 20 Jun 2023, 13:14 last edited by rogerccs
          #4

          @rogerccs Also tried a kit with compilers and debugger MinGW 8.1, still the issue persists.

          1 Reply Last reply
          0
          • C Christian Ehrlicher moved this topic from General and Desktop on 20 Jun 2023, 15:46
          • R rogerccs
            20 Jun 2023, 10:02

            @sierdzio I believe these (Qt Creator 4.14.2 and Qt 5.15.2) are the compatible versions of Qt Creator and Qt for Windows 7.

            The kit I'm using has the following specs:

            1. Qt version: 5.15.2 (manually added by chossing qmake.exe in mingw81_64 directory)
            2. Compilers: for C and C++ are in the bin for MinGW 7.3 (Auto-detected)
            3. Debugger: System GDB from MinGW 7.3 (Auto-detected)

            Note 1: Was unable to link the Qt directory for Auto-detection of Qt version
            Note 2: I have another issue, might be related or I might start another thread about it: Whenever I try to Open Command Prompt, Qt Creator stops working (crashes) and I have to restart Qt Creator.

            S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 21 Jun 2023, 05:57 last edited by
            #5

            @rogerccs In Qt Creator, does it display any warnings or errors in Kit settings or Qt Version settings?

            (Z(:^

            R 1 Reply Last reply 21 Jun 2023, 12:35
            0
            • S sierdzio
              21 Jun 2023, 05:57

              @rogerccs In Qt Creator, does it display any warnings or errors in Kit settings or Qt Version settings?

              R Offline
              R Offline
              rogerccs
              wrote on 21 Jun 2023, 12:35 last edited by
              #6

              @sierdzio Sem Título.png

              Nope, no warnings.

              After reinstallation, I get the following message after clicking on a Example:

              No valid settings file could be found.
              All settings files found in directory "\path\to\example.pro.user" were unsuitable for the current version of Qt Creator, for instance because they were written by an incompatible version of Qt Creator, or because different settings path was used.

              Which versions of Qt Creator and Qt should I use for Windows?

              S 1 Reply Last reply 21 Jun 2023, 17:05
              0
              • R rogerccs
                21 Jun 2023, 12:35

                @sierdzio Sem Título.png

                Nope, no warnings.

                After reinstallation, I get the following message after clicking on a Example:

                No valid settings file could be found.
                All settings files found in directory "\path\to\example.pro.user" were unsuitable for the current version of Qt Creator, for instance because they were written by an incompatible version of Qt Creator, or because different settings path was used.

                Which versions of Qt Creator and Qt should I use for Windows?

                S Offline
                S Offline
                sierdzio
                Moderators
                wrote on 21 Jun 2023, 17:05 last edited by
                #7

                @rogerccs said in [Issue] Qt Creator doesn't allow me to add files to projects, only the .pro file:

                example.pro.user

                Just remove this file and restart Qt Creator.

                (Z(:^

                R 1 Reply Last reply 21 Jun 2023, 17:54
                0
                • S sierdzio
                  21 Jun 2023, 17:05

                  @rogerccs said in [Issue] Qt Creator doesn't allow me to add files to projects, only the .pro file:

                  example.pro.user

                  Just remove this file and restart Qt Creator.

                  R Offline
                  R Offline
                  rogerccs
                  wrote on 21 Jun 2023, 17:54 last edited by rogerccs
                  #8

                  @sierdzio Deleting the .pro.user file does not solve the issue. I get the same message.

                  And after loading the example, the .pro.file is remade.

                  S 1 Reply Last reply 21 Jun 2023, 18:00
                  0
                  • R rogerccs
                    21 Jun 2023, 17:54

                    @sierdzio Deleting the .pro.user file does not solve the issue. I get the same message.

                    And after loading the example, the .pro.file is remade.

                    S Offline
                    S Offline
                    sierdzio
                    Moderators
                    wrote on 21 Jun 2023, 18:00 last edited by
                    #9

                    @rogerccs said in [Issue] Qt Creator doesn't allow me to add files to projects, only the .pro file:

                    And after loading the example, the .pro.file is remade.

                    Yes, that's correct.

                    Deleting the .pro.user file does not solve the issue. I get the same message.

                    I don't know then, sorry. Your setup looks good. I'm not using Windows 7 since many years, maybe it's something specific to that version.

                    (Z(:^

                    1 Reply Last reply
                    1

                    1/9

                    19 Jun 2023, 22:38

                    • Login

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