|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QObject
com.trolltech.qt.gui.QWidget
com.trolltech.qt.gui.QSizeGrip
public class QSizeGrip
The QSizeGrip class provides a resize handle for resizing top-level windows.
This widget works like the standard Windows resize handle. In the X11 version this resize handle generally works differently from the one provided by the system if the X11 window manager does not support necessary modern post-ICCCM specifications.
Put this widget anywhere in a widget tree and the user can use it to resize the top-level window or any widget with the Qt::SubWindow flag set. Generally, this should be in the lower right-hand corner. Note that QStatusBar already uses this widget, so if you have a status bar (e.g., you are using QMainWindow), then you don't need to use this widget explicitly.
On some platforms the size grip automatically hides itself when the window is shown full screen or maximised.
![]() | A size grip widget at the bottom-right corner of a main window, shown in the Plastique widget style. |
The QSizeGrip class inherits QWidget and reimplements the mousePressEvent() and mouseMoveEvent() functions to feature the resize functionality, and the paintEvent() function to render the size grip widget.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QWidget |
---|
QWidget.RenderFlag, QWidget.RenderFlags |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I> |
Field Summary |
---|
Fields inherited from class com.trolltech.qt.gui.QWidget |
---|
customContextMenuRequested |
Constructor Summary | |
---|---|
QSizeGrip(QWidget parent)
Constructs a resize corner as a child widget of the given parent. |
Method Summary | |
---|---|
boolean |
event(QEvent arg__1)
This function is reimplemented for internal reasons. |
boolean |
eventFilter(QObject arg__1,
QEvent arg__2)
This function is reimplemented for internal reasons. |
static QSizeGrip |
fromNativePointer(QNativePointer nativePointer)
This function returns the QSizeGrip instance pointed to by nativePointer |
protected void |
hideEvent(QHideEvent hideEvent)
This function is reimplemented for internal reasons. |
protected void |
mouseMoveEvent(QMouseEvent arg__1)
Resizes the top-level widget containing this widget. |
protected void |
mousePressEvent(QMouseEvent arg__1)
Receives the mouse press events for the widget, and primes the resize operation. |
protected void |
mouseReleaseEvent(QMouseEvent mouseEvent)
This function is reimplemented for internal reasons. |
protected void |
moveEvent(QMoveEvent moveEvent)
This function is reimplemented for internal reasons. |
protected void |
paintEvent(QPaintEvent arg__1)
Paints the resize grip. |
void |
setVisible(boolean arg__1)
This function is reimplemented for internal reasons. |
protected void |
showEvent(QShowEvent showEvent)
This function is reimplemented for internal reasons. |
QSize |
sizeHint()
This function is reimplemented for internal reasons. |
Methods inherited from class com.trolltech.qt.core.QObject |
---|
blockSignals, childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, property, removeEventFilter, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
disconnect, disconnect, signalSender |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QSizeGrip(QWidget parent)
Constructs a resize corner as a child widget of the given parent.
Method Detail |
---|
public boolean event(QEvent arg__1)
This function is reimplemented for internal reasons.
event
in class QWidget
public boolean eventFilter(QObject arg__1, QEvent arg__2)
This function is reimplemented for internal reasons.
eventFilter
in class QObject
protected void hideEvent(QHideEvent hideEvent)
This function is reimplemented for internal reasons.
hideEvent
in class QWidget
visible
,
event,
QHideEventprotected void mouseMoveEvent(QMouseEvent arg__1)
Resizes the top-level widget containing this widget. The mouse move event is passed in the arg__1 parameter.
mouseMoveEvent
in class QWidget
Example
protected void mousePressEvent(QMouseEvent arg__1)
Receives the mouse press events for the widget, and primes the resize operation. The mouse press event is passed in the arg__1 parameter.
mousePressEvent
in class QWidget
Example
protected void mouseReleaseEvent(QMouseEvent mouseEvent)
This function is reimplemented for internal reasons.
mouseReleaseEvent
in class QWidget
Example
protected void moveEvent(QMoveEvent moveEvent)
This function is reimplemented for internal reasons.
moveEvent
in class QWidget
protected void paintEvent(QPaintEvent arg__1)
Paints the resize grip.
Resize grips are usually rendered as small diagonal textured lines in the lower-right corner. The paint event is passed in the arg__1 parameter.
paintEvent
in class QWidget
public void setVisible(boolean arg__1)
This function is reimplemented for internal reasons.
setVisible
in class QWidget
protected void showEvent(QShowEvent showEvent)
This function is reimplemented for internal reasons.
showEvent
in class QWidget
visible
,
event,
QShowEventpublic QSize sizeHint()
This function is reimplemented for internal reasons.
sizeHint
in class QWidget
public static QSizeGrip fromNativePointer(QNativePointer nativePointer)
nativePointer
- the QNativePointer of which object should be returned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |