Plasma
scrollwidget.h
Go to the documentation of this file.
47 Q_PROPERTY(Qt::ScrollBarPolicy horizontalScrollBarPolicy READ horizontalScrollBarPolicy WRITE setHorizontalScrollBarPolicy)
48 Q_PROPERTY(Qt::ScrollBarPolicy verticalScrollBarPolicy READ verticalScrollBarPolicy WRITE setVerticalScrollBarPolicy)
49 Q_PROPERTY(bool overflowBordersVisible READ overflowBordersVisible WRITE setOverflowBordersVisible)
QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const
Definition scrollwidget.cpp:1457
bool sceneEventFilter(QGraphicsItem *i, QEvent *e)
Definition scrollwidget.cpp:1478
void setOverflowBordersVisible(const bool visible)
Sets whether borders should be shown when the inner widget is bigger than the viewport.
Definition scrollwidget.cpp:1189
void setSnapSize(const QSizeF &size)
Set the nap size of the kinetic scrolling: the scrolling will always stop at multiples of that size.
Definition scrollwidget.cpp:1297
void setAlignment(Qt::Alignment align)
Sets the alignment for the inner widget.
Definition scrollwidget.cpp:1576
Q_INVOKABLE void ensureItemVisible(QGraphicsItem *item)
Scroll the view until the given item is visible.
Definition scrollwidget.cpp:1209
void keyPressEvent(QKeyEvent *event)
Definition scrollwidget.cpp:1358
bool eventFilter(QObject *watched, QEvent *event)
Definition scrollwidget.cpp:1415
void setWidget(QGraphicsWidget *widget)
Sets the widget this ScrollWidget will contain ownership is transferred to this scrollwidget,...
Definition scrollwidget.cpp:1129
void setVerticalScrollBarPolicy(const Qt::ScrollBarPolicy policy)
Sets the vertical scrollbar policy.
Definition scrollwidget.cpp:1174
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition scrollwidget.cpp:1393
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition scrollwidget.cpp:1363
void setHorizontalScrollBarPolicy(const Qt::ScrollBarPolicy policy)
Sets the horizontal scrollbar policy.
Definition scrollwidget.cpp:1162
void setStyleSheet(const QString &stylesheet)
Sets the stylesheet used to control the visual display of this ScrollWidget.
Definition scrollwidget.cpp:1307
ScrollWidget(QGraphicsWidget *parent=0)
Constructs a new ScrollWidget.
Definition scrollwidget.cpp:1117
Qt::ScrollBarPolicy horizontalScrollBarPolicy
Definition scrollwidget.h:47
void scrollStateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
The widget started or stopped an animated scroll.
friend class ScrollWidgetPrivate
Definition scrollwidget.h:299
void setOverShoot(bool enable)
Tells the scrollwidget whether the widget can scroll a little beyond its boundaries and then automati...
Definition scrollwidget.cpp:1591
Qt::ScrollBarPolicy verticalScrollBarPolicy
Definition scrollwidget.h:48
void resizeEvent(QGraphicsSceneResizeEvent *event)
Definition scrollwidget.cpp:1334
Q_INVOKABLE void unregisterAsDragHandle(QGraphicsWidget *item)
Unregister the given item as drag handle (if it was registered)
Definition scrollwidget.cpp:1245
void viewportGeometryChanged(const QRectF &geomety)
The viewport geomety changed, for instance due a widget resize.
void wheelEvent(QGraphicsSceneWheelEvent *event)
Definition scrollwidget.cpp:1403
void focusInEvent(QFocusEvent *event)
Definition scrollwidget.cpp:1324
Q_INVOKABLE void ensureRectVisible(const QRectF &rect)
Scroll the view until the given rectangle is visible.
Definition scrollwidget.cpp:1199
void setScrollPosition(const QPointF &position)
Sets the position of the internal widget relative to this widget.
Definition scrollwidget.cpp:1274
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition scrollwidget.cpp:1375
Q_INVOKABLE void registerAsDragHandle(QGraphicsWidget *item)
Register an item as a drag handle, it means mouse events will pass trough it and will be possible to ...
Definition scrollwidget.cpp:1237
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.