Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QT Creator 2.8 and custom project folders
Forum Updated to NodeBB v4.3 + New Features

QT Creator 2.8 and custom project folders

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 1.3k 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.
  • M Offline
    M Offline
    maurofaresoftware.it
    wrote on last edited by
    #1

    Hi all.
    I'm new on this forum, and I don't know how to look for my doubt.

    I'd like to use qt-creator 2.8.1 for my apps but I'd like to give my project template folders.

    That is I'd like to make a project template made by this folders

    project_root
    src // all source files (.h .cpp .ui)
    build // all intermediate files (.o/.obj, moc_, )
    bin // final build

    Is it possible to do that with some QT Creator project wizard?

    I can do this with CMake or bakefile, but I'd like to use directly with qmake.

    Best regards,
    Mauro

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maurofaresoftware.it
      wrote on last edited by
      #2

      Damn

      I have'nt see the preview and the project_root is unreadable.

      @
      project_root
      src // I put all sources here (.c .cpp .h .ui)
      theapp.cpp
      theapp.ui
      ...
      bin // The final files (.exe, .lib .dll)
      theapp.exe
      build // the intermediated files (.o .obj moc_.)
      moc_theapp.cpp
      ...
      project_root.pro
      @

      This is the right form

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        To do such customizations with qmake, you should take a look at qmake's manual in Qt's source. All variables needed are described (DESTDIR, MOC_DIR etc.)

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • M Offline
          M Offline
          maurofaresoftware.it
          wrote on last edited by
          #4

          Thank you for the answer.
          I’ll read all about qmake.

          There is a wizard which allows me to do that at the initial project setup?

          Mauro

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            No there's not

            Currently most people use the shadow build option and don't play with this stuff anymore except when they have old not yet ported projects. However I would recommend using shadow builds, this way you don't have any generated files in your source tree and you can simplify your project structure

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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