Qt-Secret/Doc/QtCreator.md
2020-01-06 21:47:03 +03:00

1.7 KiB
Executable File

incude Qt-Secret in qtCreator

  • Open QtCreator
  • Create a new subdirs project (file >> create new project of file >> other projects >> subdirs project) and call it 'Master'
  • Copy your project folder into the Master project folder or if you use git then add your project like submodule of master poject. Use command: "git submodules add URL"
  • Open Master.pro and add your project like subproject
TEMPLATE = subdirs
CONFIG += ordered

SUBDIRS += \
           youProjectFolder

youProjectFolder.file = path/to/yuorProject.pro
  • Open the Master project folder in git console. If git not install then install it this
  • run: git submodule add https://github.com/QuasarApp/Qt-Secret.git
  • run: git submodule update --init --recursive
  • Open Master.pro
  • Add Qt-Secret library like submproject of Master
TEMPLATE = subdirs
CONFIG += ordered

SUBDIRS += \
           Qt-Secret \
           youProjectFolder \

youProjectFolder.file = path/to/yuorProject.pro
  • Open YouProject.pro
  • Include in your MyProject.pro file the pri file of Qt-Secret library (insert ito end of file next line :)
 include($$PWD/../Qt-Secret/src/Qt-Secret.pri)

  • Rebuild Master project
  • All done!. Now you nead to build only master project, because it will build both your project and the project Qt-Secret. QT-Secret will already be included to your project and you will be able to use it in your code.

For Example you can see my master project and incude library lines.