Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Project Files and Subdirectories
Qt 6.12 LTS is out! See what's new in the release blog

Project Files and Subdirectories

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.7k Views 1 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      Hi, these lines used by

      @
      make install
      @

      1 Reply Last reply
      0
      • JeroentjehomeJ Offline
        JeroentjehomeJ Offline
        Jeroentjehome
        wrote on last edited by
        #3

        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.

        Greetz, Jeroen

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