sorting qmake file



  • 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 .


  • Qt Champions 2016

    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?



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


  • Qt Champions 2016

    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.


  • Qt Champions 2016

    • 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 :)



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


  • Qt Champions 2016

    @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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.