Skip to content

Latest commit

 

History

History
100 lines (68 loc) · 2.64 KB

README.md

File metadata and controls

100 lines (68 loc) · 2.64 KB

Qt examples

shows how to use Qt widgets only by programming code (c++17).

qt

Download

git clone https://github.com/gammasoft71/Examples_Qt

Generate and build

Qt Creator

To build these projects, open Qt.Exmples.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 ./Qt.Exmples.sln

Select any project and type Ctrl+F5 to build and run it.

macOS :

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

Select any project and type Cmd+R to build and run it.

Linux with Code::Blocks :

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

Select any project and type F10 to build and run it.

Linux :

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

Remarks

This project run with Qt (and CMake).