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. QtCreator only showing ".." instead of the project
QtWS25 Last Chance

QtCreator only showing ".." instead of the project

Scheduled Pinned Locked Moved Qt Creator and other tools
10 Posts 2 Posters 2.1k 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.
  • E Offline
    E Offline
    Elador
    wrote on last edited by
    #1

    I imported a CMakeLists-based project in QtCreator, and in the "Projects" tab, where you can normally see the folders, all it shows me is "..". I can press the down-arrow and it shows me multiple levels of "..", and after 8 levels, "opt" and "user".

    How can I fix this?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      What directory structure do you get if you run cmake from command line?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Elador
        wrote on last edited by
        #3

        Everything is fine from the cmd-line (been using it for years). My structure looks like this (out of source build):

        MyProject/build/debug // <- for cmdline-build
        MyProject/build/qtcreator // <- for qtcreator-build
        MyProject/Source/CMakeLists.txt // <- source-code and everything

        And from cmd-line and qtcreator I run:

        cmake -C ../../Source/initial_cache.cmake ../../Source/ -DCMAKE_BUILD_TYPE=debug

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

          When you import cmake project qtcreator asks to run cmake with some parameters.
          Was the output of that run different from what you get when you run cmake from command line?
          Did you try to import this project in different version of QtCreator?
          Did it work?

          1 Reply Last reply
          0
          • E Offline
            E Offline
            Elador
            wrote on last edited by
            #5

            Was the output of that run different from what you get when you run cmake from command line?

            No, it looks exactly the same.

            Did you try to import this project in different version of QtCreator?

            Well, I didn't have this problem a few months ago, with an older version of QtCreator (I'm now on 3.1.2, the old one was 3.0.1 or something).
            While I changed a few things in the CMake-scripts as well in the meantime, it was nothing that on first glance should produce this behaviour.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andreyc
              wrote on last edited by
              #6

              It is possible that you discovered a regression in new qtcreator.
              If you have old qtcreator could you try to import your project there to see if it still works.

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

                I can't find old 3.x.y versions at http://download.qt-project.org/archive/ unfortunately. Where are these archived?

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andreyc
                  wrote on last edited by
                  #8

                  They are here http://download.qt-project.org/official_releases/qtcreator/

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    Elador
                    wrote on last edited by
                    #9

                    Hm I just tried. It's a bit weird, qtcreator 3.0.1 kind of picks up all settings from 3.1.2, so if I open my project in 3.0.1, it doesn't ask me again to run CMake and stuff, so it's not surprising that it now shows the same defect.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andreyc
                      wrote on last edited by
                      #10

                      Right. You need to delete .user file before opening the project. Then qtcreator will ask you to re-run cmake.
                      Also you may try to hide your current setting by moving
                      @
                      $HOME/.config/QtCreator*
                      @
                      to some other place. QtCreator will re-create it on first start with default settings.

                      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