A command-line tool to quickly set up a Qt project with customizable options written in javascript.
Install the tool globally using npm:
npm install -g qt-project-creator
Run the tool to create a new Qt project:
qt-project-creator
- Options:
--init:
Initializes a default "hello-world-qt" project with cmake.
To create a new Qt project interactively:
- Run the CLI tool:
qt-project-creator
- Follow the prompts to set up your project, including selecting Qt version, build system, and whether to include a
widget.ui
file.
The tool creates the following structure:
|project-name/
│
├── headers/
│ └── widget.h
│
├── src/
│ ├── main.cpp
│ └── widget.cpp
│
├── ui/ # (Optional) Contains .ui files if selected
│ └── widget.ui
│
├── README.md
├── LICENSE
├── CMakeLists.txt # CMake build file (if cmake is selected)
└── project-name.pro # Qt project file (if qmake is selected)
cd <project-name>
mkdir build && cd build && qmake && make
cd .. && ./build/<project-name>
cd <project-name>
./run.sh # On Windows use run.bat
MIT License. See LICENSE
for details.