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. sorting qmake file
Forum Updated to NodeBB v4.3 + New Features

sorting qmake file

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 1.6k Views 2 Watching
  • 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.
  • S Offline
    S Offline
    saber
    wrote on last edited by
    #1

    i need to organise my qmake .
    i need all the files in other folder.
    so i had to add " ../myfolder/myapp/main.cpp" for every file on that folder in the qmake.
    i got mess.
    i tried to just add the folder by SUBDIRS. but at compilation it could not find the depedencies .

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

      Hi
      There is also
      INCLUDEPATH += <your path>
      to make it look for includes in other folder.

      There is also the possible to use .PRI files

      also you can use variables instead of path.

      But im not really sure what you ask?

      S 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        There is also
        INCLUDEPATH += <your path>
        to make it look for includes in other folder.

        There is also the possible to use .PRI files

        also you can use variables instead of path.

        But im not really sure what you ask?

        S Offline
        S Offline
        saber
        wrote on last edited by saber
        #3

        @mrjj .. include path is not working

        0_1512900957503_nh.png

        as in include file by writing " ../myfolder/myapp/main.cpp" it includes file like this.

        u see the picture it got mess.
        problem is sub folder has each .pro file.those are independent widget.
        what can i do to just write a line it will include all the files on that .pro file

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

          Hi
          if each file is a folder , then yes its shown like that.
          you can use the icon above the tree.
          alt text
          to make it flat.

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #5
            • what can i do to just write a line it will include all the files on that .pro file

            You can right click project name and select Add existing directories.

            alt text

            Make sure to do it slow and see what has been choosen.
            if u rush it, it will make a giant mess :)

            S 1 Reply Last reply
            0
            • mrjjM mrjj
              • what can i do to just write a line it will include all the files on that .pro file

              You can right click project name and select Add existing directories.

              alt text

              Make sure to do it slow and see what has been choosen.
              if u rush it, it will make a giant mess :)

              S Offline
              S Offline
              saber
              wrote on last edited by
              #6

              @mrjj
              can i do it by qrc as called resource file??

              mrjjM 1 Reply Last reply
              0
              • S saber

                @mrjj
                can i do it by qrc as called resource file??

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

                @saber
                Im not sure what that means.

                You can also do with resource files
                alt text

                just make sure to set filer to images if that what you want

                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