Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 889 Bytes

File metadata and controls

61 lines (41 loc) · 889 Bytes

Shows how to create an application with QApplication.

Sources

src/Application.cpp

CMakeLists.txt

Output

Screenshot

Generate and build

Qt Creator

To build these projects, open Application.pro file with Qt Creator.

CMake

To build this project, open "Terminal" and type following lines:

Set CMAKE_PREFIX_PATH with Qt6 install path.

Windows :

mkdir build
cd build
cmake ..
start ./Application.sln

macOS :

mkdir build
cd build
cmake .. -G "Xcode"
open ./Application.xcodeproj

Linux with Code::Blocks :

mkdir build
cd build
cmake .. -G "CodeBlocks - Unix Makefiles"
xdg-open ./Application.cbp > /dev/null 2>&1

Linux :

mkdir build
cd build
cmake .. 
cmake --build . --config Debug
./Application