Shows how to animate a user control using QBasicTimer and timerEvent(). In addition, the example demonstrates how to use QFontMetrics to determine the size of text on screen.
To build these projects, open Wiggly.pro file with Qt Creator.
To build this project, open "Terminal" and type following lines:
Set CMAKE_PREFIX_PATH with Qt6 install path.
mkdir build
cd build
cmake ..
start ./Wiggly.slnmkdir build
cd build
cmake .. -G "Xcode"
open ./Wiggly.xcodeprojmkdir build
cd build
cmake .. -G "CodeBlocks - Unix Makefiles"
xdg-open ./Wiggly.cbp > /dev/null 2>&1mkdir build
cd build
cmake ..
cmake --build . --config Debug
./Wiggly