KanoopGuiQt 1.3.0
Qt GUI utility library
Loading...
Searching...
No Matches
PixmapGraphicsItem Class Reference

QGraphicsPixmapItem with an application-defined type integer. More...

#include <pixmapgraphicsitem.h>

+ Inheritance diagram for PixmapGraphicsItem:
+ Collaboration diagram for PixmapGraphicsItem:

Public Member Functions

 PixmapGraphicsItem (int type, QGraphicsItem *parent=nullptr)
 Construct with a type integer and optional parent item.
 
virtual int type () const override
 Return the application-defined type integer.
 

Protected Member Functions

virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 Handle graphics item change notifications.
 

Detailed Description

QGraphicsPixmapItem with an application-defined type integer.

PixmapGraphicsItem stores a type integer (returned by type()) that allows qgraphicsitem_cast<> and scene item-type filtering to work with custom types.

Definition at line 13 of file pixmapgraphicsitem.h.

Constructor & Destructor Documentation

◆ PixmapGraphicsItem()

PixmapGraphicsItem::PixmapGraphicsItem ( int  type,
QGraphicsItem *  parent = nullptr 
)
explicit

Construct with a type integer and optional parent item.

Parameters
typeApplication-defined graphics item type
parentOptional parent QGraphicsItem

Member Function Documentation

◆ type()

virtual int PixmapGraphicsItem::type ( ) const
inlineoverridevirtual

Return the application-defined type integer.

Returns
Item type value

Definition at line 27 of file pixmapgraphicsitem.h.


The documentation for this class was generated from the following file: