NaviNIBS.util.GUI.QScrollContainer module¶
- class NaviNIBS.util.GUI.QScrollContainer.VerticalScrollArea(*args, **kwargs)[source]¶
Bases:
QScrollArea
Address issue with behavior of default ScrollArea when never showing horizantal scrollbar but allowing resize: child widgets can be truncated left/right.
This class overrides the resizeEvent to ensure that the minimum width of the scroll area is always wide enough to show full width of child widgets.
- sizeHint()[source]¶
Modify size hint behavior to prevent scrollbar showing in some situations where the widget could be given more room to grow
- Return type:
QSize
- staticMetaObject = PySide6.QtCore.QMetaObject("VerticalScrollArea" inherits "QScrollArea": )¶
- class NaviNIBS.util.GUI.QScrollContainer.QScrollContainer(allowVerticalScrolling=True, allowHorizontalScrolling=False, innerContainerLayout=NOTHING, innerContainer=NOTHING)[source]¶
Bases:
object
- Parameters:
_allowVerticalScrolling
_allowHorizontalScrolling
_innerContainerLayout
_innerContainer
- _allowVerticalScrolling: bool¶
- _allowHorizontalScrolling: bool¶
- _innerContainerLayout: QLayout¶
- _innerContainer: QWidget¶
- property scrollArea¶
- property innerContainer¶
- property innerContainerLayout¶