Home · All Classes · Modules

QSplitterHandle Class Reference
[QtGui module]

The QSplitterHandle class provides handle functionality of the splitter. More...

Inherits QWidget.

Methods


Detailed Description

The QSplitterHandle class provides handle functionality of the splitter.

QSplitterHandle is typically what people think about when they think about a splitter. It is the handle that is used to resize the widgets.

A typical developer using QSplitter will never have to worry about QSplitterHandle. It is provided for developers who want splitter handles that do more. The typical way one would create splitter handles is to subclass QSplitter and then reimplement QSplitter.createHandle() to instatiate the custom splitter handle.

Most of the functions inside QSplitterHandle are forwards to QSplitter or like orientation() and opaqueResize(), controlled by the QSplitter.

See also QSplitter.


Method Documentation

QSplitterHandle.__init__ (self, Qt.Orientation o, QSplitter parent)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

Creates a QSplitter handle with the given orientation and QSplitter parent.

int QSplitterHandle.closestLegalPosition (self, int p)

Returns the closest legal position to pos of the splitter handle. The positions are measured from the left or top edge of the splitter, even for right-to-left languages.

See also QSplitter.closestLegalPosition() and moveSplitter().

bool QSplitterHandle.event (self, QEvent)

QSplitterHandle.mouseMoveEvent (self, QMouseEvent)

QSplitterHandle.mousePressEvent (self, QMouseEvent)

QSplitterHandle.mouseReleaseEvent (self, QMouseEvent)

QSplitterHandle.moveSplitter (self, int p)

Tells the splitter to move this handle to position pos, which is the distance from the left or top edge of the widget.

Note that pos is also measured from the left (or top) for right-to-left languages. This function will map pos to the appropriate position before calling QSplitter.moveSplitter().

See also QSplitter.moveSplitter() and closestLegalPosition().

bool QSplitterHandle.opaqueResize (self)

Returns true if widgets are resized dynamically (opaquely), otherwise returns false. This value is controlled by the QSplitter.

See also QSplitter.opaqueResize().

Qt.Orientation QSplitterHandle.orientation (self)

Returns the handle's orientation. This is usually propagated from the QSplitter.

See also setOrientation() and QSplitter.orientation().

QSplitterHandle.paintEvent (self, QPaintEvent)

QSplitterHandle.setOrientation (self, Qt.Orientation o)

Sets the orientation of the splitter handle to orientation. This is usually propogated from the QSplitter.

See also orientation() and QSplitter.setOrientation().

QSize QSplitterHandle.sizeHint (self)

QSplitter QSplitterHandle.splitter (self)

Returns the splitter associated with this splitter handle.

See also QSplitter.handle().


PyQt 4.0.1 for X11Copyright © Riverbank Computing Ltd and Trolltech AS 2006Qt 4.1.4