How daik0t/qt-gui works
This Qt desktop app lets users grow or reset a grid of red squares, then simulate a moving ray against the grid’s outer borders. The main workflow is coordinated in main.cpp: it collects square-neighbor border data, opens a preview window, and configures the ray’s obstacles and stopping barriers. The simulation’s timer, drawing, and collision behavior lives in RayWidget. Relationships below follow the provided excerpts; no README or other source files were provided.
Main entry points: main.cpp Application setup · RayWidget.cpp Ray simulation · BorderWindow.cpp Border preview · PlusButton.h Add button
Components 8
Grid editor
- Application setup
main.cpp - Grid editing
main.cpp - Add button
PlusButton.h - Grid square
Square.h
Border simulation
- Border extraction
main.cpp - Border preview
BorderWindow.cpp
Ray runtime
- Ray simulation
RayWidget.cpp
Other components
- User
Connections 14
- User → Application setup: launches
main.cpp - Application setup → Grid editing: initializes
main.cpp - Application setup → Add button: creates
main.cpp - Application setup → Grid square: creates
main.cpp - Add button → Grid editing: adds square
main.cpp - Grid square → Grid editing: deletes square
main.cpp - User → Grid editing: edits or resets
main.cpp - Application setup → Border extraction: collects borders
main.cpp - Border extraction → Border preview: passes borders
main.cpp - Border preview → Ray simulation: creates; sets obstacles
BorderWindow.cpp - Application setup → Border preview: opens preview
main.cpp - Application setup → Ray simulation: sets stop barriers
main.cpp - User → Application setup: starts simulation
main.cpp - Ray simulation → Ray simulation: ticks; updates and paints
RayWidget.cpp