Draw Rectangles in QT
- Download the repository
- Install Geometry
- Unzip it to your favorite DLL build destination
- Go to settings:
QT-Creator->Tools->Options->Build & Run
and change the Default build directory: to
bin/%{JS: Util.asciify("build-%{CurrentBuild:Name}")}
If you already have these settings, you can skip the following step. - Save the settings, close the project and delete the .user file.
- Open the .pro file, select the MinGW compiler.
- Edit the .pro file:
username = AlexKrieg
QT_work_dir = C:/Users/$$username/Documents/QT
geometryPath = $$QT_work_dir/lib/Geometry
INCLUDEPATH += $$geometryPath
SOURCES += \
rect.cpp \
$$geometryPath/geometry.cpp
Change the username, QT_work_dir and geometryPath to your personal settings.
- Save the .pro file
- Build it