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. How to import/load an existing Creator project?

How to import/load an existing Creator project?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
11 Posts 3 Posters 9.4k 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.
  • W Offline
    W Offline
    WhatIf
    wrote on last edited by A Former User
    #1

    Hi,

    I reformatted my hard disk and install windows again :(

    Before I did that I copied my project folder from the document folder (where qt project folders/files are saved) but now I can't load the project into qt. I keep getting this message

    My project consist of several nested folder. How can I load my project?

    Thanks in advance :)

    [Edit: embedded image ~~ @Wieland]

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Either let Qt Creator load it and update it or just move it out of the folder (or delete it unless you have something to recover from it).

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • W Offline
        W Offline
        WhatIf
        wrote on last edited by
        #3

        I moved the project folder out of the document folder. clicked New Project > Import Project > Import Existing project > choose

        selected the location and gave it a project name. I then selected some of the files that weren't selected.

        When I tried to run the project I got an error:

        Compile output is :
        16:59:22: Configuration is faulty. Check the Issues view for details.
        Error while building/deploying project Shepherd (kit: Desktop)
        When executing step "Make"

        Issues:
        Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.

        When I checked the Options > Build & Run > kits tab, it shows Auto-detected, Manual Desktop (default) with a exclamation mark to its left.

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          Hi
          No need to move stuff around.
          It simply tells you that it found a .user file and it was not created with your Creator
          (as you reinstalled)
          Just delete .user file and re-select the compiler when it ask as you reopen the .pro file.
          You need not to import the project. The .user file contains extra build steps if added and
          all might work just fine without it. its sort of a preference file.

          Note its pro.USER and not the pro file itself!

          1 Reply Last reply
          2
          • W Offline
            W Offline
            WhatIf
            wrote on last edited by
            #5

            Where is the .user file located to delete?

            I tried to open the project again and I was taken to the Configure Project page.

            https://ibb.co/jxe1Sw

            When I clicked options, I got

            https://ibb.co/gS7o7w

            Am I moving in the right direction?

            1 Reply Last reply
            0
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi
              The .user file is always right next to the .pro file.
              and it seems right as normally there would be compilers to choose from.

              It seems there is no Qt kits found ?

              Did you install the mingw Qt or the visual studio compiler Qt ?

              1 Reply Last reply
              0
              • W Offline
                W Offline
                WhatIf
                wrote on last edited by WhatIf
                #7

                I checked the project folder and it has a file named Shepherd.pro.user. Is this the file I have to delete?

                I ran the Qt maintenance tool > add remove component and a selected Qt 5.9.3

                After it installed, I tried to run the project again but now I have to select from a list of (MSVC 2013-2017 or MinGW) 64 or 32.

                https://ibb.co/edU2Zb

                The computer I'm using is dual core running Win 64-bit. I never made this selection before. Any advice on whether to use MSVC or MinGW? 64 or 32? Also MSVC seems to have different versions 2013, 2015, and 2017. Which one to use if you advise MSVC?

                mrjjM 1 Reply Last reply
                0
                • W WhatIf

                  I checked the project folder and it has a file named Shepherd.pro.user. Is this the file I have to delete?

                  I ran the Qt maintenance tool > add remove component and a selected Qt 5.9.3

                  After it installed, I tried to run the project again but now I have to select from a list of (MSVC 2013-2017 or MinGW) 64 or 32.

                  https://ibb.co/edU2Zb

                  The computer I'm using is dual core running Win 64-bit. I never made this selection before. Any advice on whether to use MSVC or MinGW? 64 or 32? Also MSVC seems to have different versions 2013, 2015, and 2017. Which one to use if you advise MSVC?

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @WhatIf

                  Use mingw if u are not using visual studio already and have it installed from microsoft.

                  If using visual studio Qt, it MUST match the compiler you have download from microsoft and installed yourself.

                  mrjjM 1 Reply Last reply
                  1
                  • mrjjM mrjj

                    @WhatIf

                    Use mingw if u are not using visual studio already and have it installed from microsoft.

                    If using visual studio Qt, it MUST match the compiler you have download from microsoft and installed yourself.

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by mrjj
                    #9

                    named Shepherd.pro.user.
                    Yes. and select same compiler as for the rest.
                    make sure it mingw if u choose that.

                    if you dont have the visual studio compiler installed the qt visual studio Qt will not work. The compiler IS NOT included.

                    1 Reply Last reply
                    1
                    • W Offline
                      W Offline
                      WhatIf
                      wrote on last edited by
                      #10

                      Thank you very much!

                      One last question, I didn't remove Shepherd.pro.user and still everything worked fine. Will I experience any problems in the future that I didn't remove it?

                      mrjjM 1 Reply Last reply
                      0
                      • W WhatIf

                        Thank you very much!

                        One last question, I didn't remove Shepherd.pro.user and still everything worked fine. Will I experience any problems in the future that I didn't remove it?

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @WhatIf
                        If it works, you will get no issues with Shepherd.pro.user .
                        Normally Creator creates is (again) when you have
                        open Shepherd.pro

                        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