本页内容

Layouting::ScrollArea Class

class Layouting::ScrollArea

封装了QScrollArea ,以便在布局构建器中使用。更多内容...

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

公共函数

void setFixSizeHintBug(bool fixBug)

详细说明

滚动区域的创建需将widgetResizable 设置为true 。内部内容可以是Layout、Widget或原始的QWidget 。默认情况下,sizeHint上限为36×24 em宽度,这是为解决QTBUG-136762问题而采取的临时措施;调用setFixSizeHintBug(true)可禁用此上限。

另请参阅 Layouting::Widget 。

成员函数文档

void ScrollArea::setFixSizeHintBug(bool fixBug)

当 `fixBug ` 的值为 `true` 时,将禁用默认的 36×24 em 宽度的 `sizeHint` 上限(该限制用于绕过 QTBUG-136762)。当滚动区域必须报告其完整的首选尺寸而非对其进行限制时,请启用此选项。

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.