On this page

Layouting::ScrollArea Class

class Layouting::ScrollArea

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

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

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.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.