- Extending Qt Creator Manual
- QtCreator
- Canvas
- Extending Qt Creator Manual 20.0.1

# Layouting::Canvas Class

class Layouting::Canvas

Provides a custom-painted widget surface for use in a Layouting builder. More...

Header: | `#include <layoutbuilder.h>`
Inherits: | Layouting::Widget

- List of all members, including inherited members

## Public Functions

| Canvas()

## Detailed Description

The paint function is set via setPaintFunction() and receives a QPainter reference on each paint event. The underlying widget is a CanvasWidget.

See also Layouting::Widget.

## Member Function Documentation

### `[noexcept default]` Canvas::Canvas()

Default-constructs an instance of Canvas.