Home / 1.1
Name Modified Size InfoDownloads / Week
Parent folder
qpt-source-1.1.tgz 2013-11-17 6.7 MB
qpt_1.1_winsetup.exe 2013-11-17 2.0 MB
Totals: 2 Items   8.7 MB 0
By Carlos J. Mazieri
carlos.mazieri@gmail.com

November 2017


The Qt Project Tool (qpt)


The "qpt" (Qt Project Tool) is a command line utility that aims to extract information
from Qt projects (qmake managed .pro files or cmake project file CMakeLists.txt)
making it easy to use project set of files and settings as input to other command line tools.

As example other tools can be: Static Analyzers, Code Counters and others.

When "qpt" is used with Static Analyzer tools it also can work as a Qt Creator plugin,
making it easy and fast to change source code inside Qt Creator. In other hand qpt can also be used in
automated builds/tests like "Continuous Integration" tools.

So far it is known to work and comes configured for:
 *Static Analyzers:
    cppcheck http://cppcheck.sourceforge.net/
    krazy    http://www.englishbreakfastnetwork.org/krazy
    vera++   http://www.inspirel.com/vera/
    cpplint  https://google.github.io/styleguide/cppguide.html
 *Others:
    astyle  http://astyle.sourceforge.net/astyle.html an Automatic Code Formatter
    cloc    http://cloc.sourceforge.net               a Code Lines Counter


It was written for Qt and uses Qt of course, works with Qt4 or Qt5, see https://www.qt.io

To build on Unix/Linux:

   $  cd qpt
   $  qmake && make               ## copy qpt to a suitable path
   $  cd config && sh install.sh  ## to install xml external tools for QtCreator, on Windows the installer does that.

   ## optional, build customized astyle
   $  cd qpt
   $  cd astyle_customized_for_Qt_and_cpplint
   $  qmake && make               ## copy astyle to a suitable path


Documentation is available in the "doc" directory:

                qpt_manual.pdf


Acknowledgement

=================

Many thanks to J??rgen Quereng??sser <msg212@gmx.de>  who did:
  * modified the code in order to have 0.7 version working on Windows.
    He also provided a compiled 0.7 Windows version.

Many thanks to Serhiy Moroz who did:
  * added support for Project files TEMPLATE = subdirs in the 1.0 version.

Many thanks to Roman Telezhynskyi <dismine@gmail.com> who did:
  * fixed a bug (version 1.1) related to when the Static Analyzer tool generates a big number of issues.
  * provided a patch to support variables in the SUBDIRS projects (version 1.2)
  * provided a patch to clean QtCreator issues pane before running a new cppecheck session (version 1.2)

Many thanks to philippe.foubert <philippe.foubert@free.fr>
  * provided a patch in Util::quoteWhenContainSpaces() from version 1.4 which generated version 1.5.
  * provided pacthes to allow spaces in the command line for version 1.6

Source: readme.txt, updated 2021-09-13