Loading...
Searching...
No Matches
Classes |
Public Types |
Public Member Functions |
Protected Member Functions |
Static Protected Member Functions |
Protected Attributes |
List of all members
oscr::CustomItem< Item, Control > Class Template Reference
Inheritance diagram for oscr::CustomItem< Item, Control >:
Classes | |
| struct | custom_mouse_event |
Public Types | |
| using | item_type = std::decay_t< Item > |
Public Member Functions | |
| CustomItem (Item t) | |
| QRectF | boundingRect () const override |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
Protected Member Functions | |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
| void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
| void | wheelEvent (QGraphicsSceneWheelEvent *event) override |
Static Protected Member Functions | |
| static custom_mouse_event | make_event (QGraphicsSceneMouseEvent *event) noexcept |
Protected Attributes | |
| Item | impl |
Member Function Documentation
◆ wheelEvent()
template<typename Item , typename Control = void>
|
inlineoverrideprotected |
Only widgets that define wheel() take the event: everything else keeps letting the view scroll.
The documentation for this class was generated from the following file: