Internal class representing the viewport of the scrollview.
Methods
|
|
__init__
getWidget
getWidgetSize
setScrollOffset
setScrollOffsetP
|
|
__init__
|
__init__ (
self,
child,
parent=None,
name=None,
)
Constructor
Arguments
- child
- reference to the child widget to be managed
- parent
- parent widget (QWidget)
- name
- name of this widget (string or QString)
|
|
getWidget
|
getWidget ( self )
Public method returning the child widget.
Returns
child widget
|
|
getWidgetSize
|
getWidgetSize ( self )
Public method to get the size of the child widget.
Returns
the size of the child widget (QSize)
|
|
setScrollOffset
|
setScrollOffset (
self,
x,
y,
)
Sets the scrolling offset for the child widget.
Arguments
- x
- x-offset (int)
- y
- y-offset (int)
|
|
setScrollOffsetP
|
setScrollOffsetP ( self, point )
Sets the scrolling offset for the child widget.
Arguments
- point
- scrolling offset (QPoint)
|
|