Na tej stronie

Layouting::ScrollArea Class

class Layouting::ScrollArea

Obejmuje klasę ` QScrollArea ` do wykorzystania w kreatorze układu. Więcej...

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

Funkcje publiczne

void setFixSizeHintBug(bool fixBug)

Szczegółowy opis

Obszar przewijania jest tworzony z ustawieniem ` widgetResizable ` na ` true`. Zawartością wewnętrzną może być układ (Layout), widżet (Widget) lub surowy element ` QWidget`. Domyślnie wartość `sizeHint` jest ograniczona do 36x24 szerokości em jako obejście błędu QTBUG-136762; aby wyłączyć to ograniczenie, należy wywołać metodę ` setFixSizeHintBug` (true).

Zobacz także Layouting::Widget.

Dokumentacja funkcji składowych

void ScrollArea::setFixSizeHintBug(bool fixBug)

Gdy wartość ` fixBug ` ma wartość ` true`, wyłącza domyślne ograniczenie `sizeHint` do 36 x 24 szerokości em, które stanowi obejście błędu QTBUG-136762. Należy włączyć tę opcję, gdy obszar przewijania musi zgłaszać swój pełny preferowany rozmiar zamiast go ograniczać.

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.