Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QWidgetView class provides on-demand scroll bars around a widget. More...
#include <QWidgetView>
Inherits QViewport.
The QWidgetView class provides on-demand scroll bars around a widget.
The widget view's widget must be set with setWidget(); it can be retrieved by widget(). The widget view's widget can be set resizable with setWidgetResizable().
This property holds whether the widget view should resize the view widget.
If this property is set to false (the default), the view honors the size of its widget. Regardless of this property you can programmatically resize the widget using widget()->resize(), and the widget view will automatically adjust itself to the new size.
If this property is set to true, the view will automatically resize the widget in order to avoid scroll bars where they can be avoided, or to take advantage of extra space.
Access functions:
Constructs a widget view with the given parent, and with no widget; see setWidget().
Destroys the widget view.
Set's the view widget's widget to w.
w becomes a child of the widget view, and will be destroyed when the widget view is deleted or when a new view widget is set.
See also widget().
Returns the view widget's widget, or 0 if there is none.
See also setWidget().
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp1 |