Project Files and Subdirectories



  • I would like to store all of my GUI files in a folder away from the rest of the files, but I am having a problem getting all of the generated files to output in my folder. I believe the problem lies in the Qt Project file.
    @
    CONFIG += qt release warn_on

    QT += sql

    HEADERS =
    control.h
    model.h
    model/mysearch.h
    model/mymanager.h
    model/mytree.h
    stditems.h

    FORMS =
    view/MyMain.ui

    SOURCES =
    control.cpp
    model.cpp
    model/mysearch.cpp
    model/mymanager.cpp
    model/mytree.cpp
    stditems.cpp
    main.cpp

    target.path = ./
    sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
    sources.path = ./
    INSTALLS += target sources
    @

    Also, I'm not exactly sure how this part works. Could someone explain it to me?
    @
    target.path = ./
    sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
    sources.path = ./
    @

    Thank you.



  • Hi, these lines used by

    @
    make install
    @



  • Hi,
    The most easy think to move files is to first delete them (Project Bar in your QtCreator), but do not delete them permanetly (little check box there). Then in explorer/freecommander move the file how you want them. Then in QtCreator again do a add existing files and the subdirectory is included by QtCreator in your pro file and in your ProjectBar treeView.


Log in to reply
 

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