Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1 KB

File metadata and controls

68 lines (45 loc) · 1 KB

PictureBox2

Shows how to create a picture box with QGraphicsPixmapItem.

Sources

src/PictureBox2.h

src/PictureBox2.cpp

Resources/Logo.png

PictureBox2.qrc

CMakeLists.txt

Output

Screenshot

Generate and build

Qt Creator

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

macOS :

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

Linux with Code::Blocks :

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

Linux :

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