Skip to main content

TestWidgetView

TestWidgetView

View component for TestWidget. More…

#include <TestWidgetView.hpp>

Inherits from QGraphicsView

Public Functions

Name
TestWidgetView(std::shared_ptr< TestWidgetState > state, QWidget * parent =[nullptr])
Construct a new TestWidgetView.
~TestWidgetView() override

Protected Functions

Name
void resizeEvent(QResizeEvent * event) override

Detailed Description

class TestWidgetView;

View component for TestWidget.

Displays a simple canvas demonstrating state-driven rendering:

  • Grid lines (toggled by state->showGrid())
  • Crosshair (toggled by state->showCrosshair())
  • Animated circle (toggled by state->enableAnimation())
  • Label with highlight color (from state->labelText(), state->highlightColor())
  • Zoom level (from state->zoomLevel())
  • Grid spacing (from state->gridSpacing())

Public Functions Documentation

function TestWidgetView

explicit TestWidgetView(
    std::shared_ptr< TestWidgetState > state,
    QWidget * parent =nullptr
)

Construct a new TestWidgetView.

Parameters:

function ~TestWidgetView

~TestWidgetView() override

Protected Functions Documentation

function resizeEvent

void resizeEvent(
    QResizeEvent * event
) override

Updated on 2026-11-13 at 20:25:39 +0000