- Extending Qt Creator Manual
- QtCreator
- ScrollArea
- Extending Qt Creator Manual 21.0.0-beta1

# Layouting::ScrollArea Class

class Layouting::ScrollArea

Wraps QScrollArea for use in a Layouting builder. More...

Header: | `#include <ScrollArea>`
Inherits: | Layouting::Widget

- List of all members, including inherited members

## Public Functions

void | setFixSizeHintBug(bool fixBug)

## Detailed Description

The scroll area is created with `widgetResizable` set to `true`. The inner content can be a Layout, a Widget, or a raw QWidget. By default, sizeHint is capped at 36x24 em-widths as a workaround for QTBUG-136762; call setFixSizeHintBug(true) to disable the cap.

See also Layouting::Widget.

## Member Function Documentation

### void ScrollArea::setFixSizeHintBug(bool fixBug)

When fixBug is `true`, disables the default sizeHint cap of 36x24 em-widths that works around QTBUG-136762. Enable this when the scroll area must report its full preferred size rather than capping it.