Slab used as a handle by PlaceHolder class to resize or move a Widget More...
#include <placehld.h>
A SizeSlab emits signals when the mouse button is pressed on it and it is dragged. The displacement from the point where the mouse was pressed is emitted with each mouseMoveEvent which is received. When the mouse button is released, another signal is sent.
Creates a new SizeSlab with a size of 6 x 6 pixels and a black background.
Destoy a SizeSlab.
[signal]
This signal is emitted when the mouse is dragged while it was pressed down in this SizeSlab. It reports the displacement from the point where the mouse button was pressed.
[signal]
This signal is emitted when the mouse button is released after dragging.
[protected]
Handles mouse press events. The _dragging flag is set and the point where the mouse button was pressed down is remembered.
[protected]
Handles mouse release events. The _dragging flag is reset and the released() signal is emitted.
[protected]
Handles mouse move events. If the user is dragging the mouse, the displacement relative to the point where the mouse was pressed is emitted through the displace(const QPoint &) signal.
[private]
Flag that indicated mouse dragging
[private]
The start point of mouse dragging