Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Qt Creator: Minimise file path in "Project View". How?

    General and Desktop
    4
    8
    612
    Loading More Posts
    • 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.
    • B
      bogong last edited by bogong

      Hello all!
      Is there any way to minimise file path in Qt Creator? In the *.pro file it's using relative path, but in Qt Creator "Project view" showing full path. Look on image below. Sometimes it's taking almost full screen length.

      0_1567663155633_Screenshot 2019-09-05 at 08.55.30.png

      aha_1980 1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        What version of Qt Creator are you using ?

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

        B 1 Reply Last reply Reply Quote 0
        • aha_1980
          aha_1980 Lifetime Qt Champion @bogong last edited by

          @bogong and to add to @SGaist, can you show your pro file?

          Qt has to stay free or it will die.

          1 Reply Last reply Reply Quote 1
          • B
            bogong @SGaist last edited by

            @sgaist It was on Qt Creator on 4.9 and it's happening on newest 4.10. In *.pro file relative path from the project root. The *.pro file might be taken from this example

            aha_1980 1 Reply Last reply Reply Quote 0
            • aha_1980
              aha_1980 Lifetime Qt Champion @bogong last edited by

              @bogong

              I think the problem is that you use relative paths outside the project file directory:

              SOURCES += \
                ../UniversalSources/TestClass/atestclass.cpp \
              

              Honestly, I'd restructure such a project so all files are below a specific pro file.

              Regards

              Qt has to stay free or it will die.

              B 1 Reply Last reply Reply Quote 2
              • B
                bogong @aha_1980 last edited by

                @aha_1980 I know why the problem is. The question was about Qt Creator ability - "Is there any way to minimise file path in Qt Creator?"

                aha_1980 1 Reply Last reply Reply Quote 0
                • mrjj
                  mrjj Lifetime Qt Champion last edited by

                  Hi
                  As far as I know, you cannot ask Creator to show less of the path.
                  You can use a .PRI file to include the outside files and only get the full path listed once.
                  the files under it will show base names.
                  alt text

                  1 Reply Last reply Reply Quote 3
                  • aha_1980
                    aha_1980 Lifetime Qt Champion @bogong last edited by

                    @bogong

                    If you create a bugreport, please add a link here, so others can follow: QTCREATORBUG-22910

                    Thanks!

                    Qt has to stay free or it will die.

                    1 Reply Last reply Reply Quote 2
                    • First post
                      Last post