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. Qt Creator: Minimise file path in "Project View". How?
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 1.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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by bogong
    #1

    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_1980A 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • B 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_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @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
        1
        • SGaistS SGaist

          Hi,

          What version of Qt Creator are you using ?

          B Offline
          B Offline
          bogong
          wrote on last edited by
          #4

          @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_1980A 1 Reply Last reply
          0
          • B bogong

            @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_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @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
            2
            • aha_1980A aha_1980

              @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

              B Offline
              B Offline
              bogong
              wrote on last edited by
              #6

              @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_1980A 1 Reply Last reply
              0
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                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
                3
                • B bogong

                  @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_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @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
                  2

                  • Login

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