QWidget based 2d graphics view.
More...
#include <RGraphicsViewQt.h>
QWidget based 2d graphics view.
This graphics view displays a rectangular area of a RGraphicsSceneQt.
- Scriptable:\nThis class is available in script environments.\n
- \generateScriptShell
◆ RGraphicsViewQt()
| RGraphicsViewQt::RGraphicsViewQt |
( |
QWidget * | parent = NULL, |
|
|
bool | showFocus = true ) |
◆ ~RGraphicsViewQt()
| RGraphicsViewQt::~RGraphicsViewQt |
( |
| ) |
|
|
virtual |
◆ disableGestures()
| void RGraphicsViewQt::disableGestures |
( |
| ) |
|
|
inline |
◆ dragEnter
| void RGraphicsViewQt::dragEnter |
( |
QDragEnterEvent * | event | ) |
|
|
signal |
◆ dragEnterEvent()
| void RGraphicsViewQt::dragEnterEvent |
( |
QDragEnterEvent * | event | ) |
|
|
protectedvirtual |
◆ drop
| void RGraphicsViewQt::drop |
( |
QDropEvent * | event | ) |
|
|
signal |
◆ dropEvent()
| void RGraphicsViewQt::dropEvent |
( |
QDropEvent * | event | ) |
|
|
protectedvirtual |
◆ event()
| bool RGraphicsViewQt::event |
( |
QEvent * | e | ) |
|
|
protected |
Handle terminate events and gestures.
◆ focusInEvent()
| void RGraphicsViewQt::focusInEvent |
( |
QFocusEvent * | event | ) |
|
|
protectedvirtual |
Called when this view gets the focus.
Highlights the view to show to the user that events go to this view.
◆ focusNextPrevChild()
| virtual bool RGraphicsViewQt::focusNextPrevChild |
( |
bool | next | ) |
|
|
inlineprotectedvirtual |
◆ focusOutEvent()
| void RGraphicsViewQt::focusOutEvent |
( |
QFocusEvent * | event | ) |
|
|
protectedvirtual |
Called when this view lost the focus.
Resets the focus highlighting.
◆ gestureEvent()
| bool RGraphicsViewQt::gestureEvent |
( |
QGestureEvent * | event | ) |
|
|
protected |
◆ getHeight()
| int RGraphicsViewQt::getHeight |
( |
| ) |
const |
|
virtual |
◆ getImageView()
◆ getRect()
| QRect RGraphicsViewQt::getRect |
( |
| ) |
const |
|
virtual |
◆ getSignalsBlocked()
| bool RGraphicsViewQt::getSignalsBlocked |
( |
| ) |
const |
|
virtual |
◆ getWidth()
| int RGraphicsViewQt::getWidth |
( |
| ) |
const |
|
virtual |
◆ imageViewDeleted
| void RGraphicsViewQt::imageViewDeleted |
( |
| ) |
|
|
privateslot |
◆ keyPressEvent()
| void RGraphicsViewQt::keyPressEvent |
( |
QKeyEvent * | event | ) |
|
|
protectedvirtual |
◆ keyReleaseEvent()
| void RGraphicsViewQt::keyReleaseEvent |
( |
QKeyEvent * | event | ) |
|
|
protectedvirtual |
◆ mouseDoubleClickEvent()
| void RGraphicsViewQt::mouseDoubleClickEvent |
( |
QMouseEvent * | event | ) |
|
|
protectedvirtual |
◆ mouseMoveEvent()
| void RGraphicsViewQt::mouseMoveEvent |
( |
QMouseEvent * | event | ) |
|
|
protectedvirtual |
Relays the Qt mouse event to the scene.
◆ mousePressEvent()
| void RGraphicsViewQt::mousePressEvent |
( |
QMouseEvent * | event | ) |
|
|
protectedvirtual |
◆ mouseReleaseEvent()
| void RGraphicsViewQt::mouseReleaseEvent |
( |
QMouseEvent * | event | ) |
|
|
protectedvirtual |
◆ paintEvent()
| void RGraphicsViewQt::paintEvent |
( |
QPaintEvent * | e | ) |
|
|
protectedvirtual |
Repaints the view.
If the view has been invalidated before, the view is redrawn from scratch. Otherwise, only a cached buffer is drawn (very fast).
- See also
- invalidate
◆ removeFocus()
| void RGraphicsViewQt::removeFocus |
( |
| ) |
|
|
virtual |
◆ resizeEvent()
| void RGraphicsViewQt::resizeEvent |
( |
QResizeEvent * | event | ) |
|
|
protectedvirtual |
◆ setFocusFrameWidget()
| void RGraphicsViewQt::setFocusFrameWidget |
( |
QFrame * | w | ) |
|
◆ setImageView()
◆ setSignalsBlocked()
| void RGraphicsViewQt::setSignalsBlocked |
( |
bool | on | ) |
|
|
virtual |
◆ simulateMouseMoveEvent()
| void RGraphicsViewQt::simulateMouseMoveEvent |
( |
| ) |
|
|
virtual |
◆ sizeHint()
| QSize RGraphicsViewQt::sizeHint |
( |
| ) |
const |
|
virtual |
◆ tabletEvent()
| void RGraphicsViewQt::tabletEvent |
( |
QTabletEvent * | event | ) |
|
|
protectedvirtual |
◆ wheelEvent()
| void RGraphicsViewQt::wheelEvent |
( |
QWheelEvent * | event | ) |
|
|
protectedvirtual |
◆ focusFrameWidget
| QFrame* RGraphicsViewQt::focusFrameWidget |
|
private |
◆ gesturesEnabled
| bool RGraphicsViewQt::gesturesEnabled |
|
private |
◆ gotMouseButtonPress
| bool RGraphicsViewQt::gotMouseButtonPress |
|
private |
◆ imageView
◆ lastButtonState
| Qt::MouseButtons RGraphicsViewQt::lastButtonState |
|
private |
remember last mouse button state for wacom bug workaround
◆ mouseClickTimer
| QElapsedTimer RGraphicsViewQt::mouseClickTimer |
|
private |
◆ mousePressModelPosition
| RVector RGraphicsViewQt::mousePressModelPosition |
|
private |
◆ mousePressScreenPosition
| RVector RGraphicsViewQt::mousePressScreenPosition |
|
private |
◆ showFocus
| bool RGraphicsViewQt::showFocus |
|
private |
The documentation for this class was generated from the following files: