Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_gui_graphicsview_qgraphicsitem.cpp File Reference

(69d4ecd6ef9057cb3703178277042ff7a7411459)

Go to the source code of this file.

Classes

class  SimpleItem
 [0] More...
 
class  CustomItem
 [0] More...
 
class  QGraphicsPathItem
 [17] More...
 

Functions

item setCursor (Qt::IBeamCursor)
 [1]
 
rect setPos (100, 100)
 
rect sceneTransform ().map(QPointF(0
 
rect deviceTransform (view->viewportTransform()).map(QPointF(0
 
 if (item->data(ObjectName).toString().isEmpty())
 
line installSceneEventFilter (ellipse)
 
ellipse installSceneEventFilter (line)
 
scene destroyItemGroup (group)
 
view viewport () -> scroll(dx, dy, deviceRect)
 

Variables

QGraphicsRectItem rect
 [3]
 
static const int ObjectName = 0
 [10]
 
QGraphicsItemitem = scene.itemAt(100, 50)
 
QGraphicsScene scene
 [11]
 
QGraphicsEllipseItemellipse = scene.addEllipse(QRectF(-10, -10, 20, 20))
 
QGraphicsLineItemline = scene.addLine(QLineF(-10, -10, 20, 20))
 
QGraphicsItemGroupgroup = scene->createItemGroup(scene->selecteditems())
 [16]
 
QTransform xform = item->deviceTransform(view->viewportTransform())
 [18]
 
QRect deviceRect = xform.mapRect(rect).toAlignedRect()
 

Function Documentation

◆ destroyItemGroup()

scene destroyItemGroup ( group )

◆ deviceTransform()

rect rect deviceTransform ( view-> viewportTransform())

◆ if()

if ( item-> dataObjectName).toString().isEmpty()

Definition at line 108 of file src_gui_graphicsview_qgraphicsitem.cpp.

◆ installSceneEventFilter() [1/2]

line installSceneEventFilter ( ellipse )

◆ installSceneEventFilter() [2/2]

ellipse installSceneEventFilter ( line )

◆ sceneTransform()

rect rect sceneTransform ( )

◆ setCursor()

setCursor ( Qt::IBeamCursor )

[1]

[2]

[3]

[6]

◆ setPos()

rect setPos ( 100 ,
100  )

◆ viewport()

view viewport ( ) -> scroll(dx, dy, deviceRect)

Variable Documentation

◆ deviceRect

QRect deviceRect = xform.mapRect(rect).toAlignedRect()

Definition at line 205 of file src_gui_graphicsview_qgraphicsitem.cpp.

◆ ellipse

QGraphicsEllipseItem * ellipse = scene.addEllipse(QRectF(-10, -10, 20, 20))

Definition at line 117 of file src_gui_graphicsview_qgraphicsitem.cpp.

◆ group

QGraphicsItemGroup* group = scene->createItemGroup(scene->selecteditems())

[16]

[17]

Definition at line 186 of file src_gui_graphicsview_qgraphicsitem.cpp.

◆ item

◆ line

QGraphicsLineItem* line = scene.addLine(QLineF(-10, -10, 20, 20))

Definition at line 118 of file src_gui_graphicsview_qgraphicsitem.cpp.

◆ ObjectName

static const int ObjectName = 0
static

[10]

[11]

Definition at line 105 of file src_gui_graphicsview_qgraphicsitem.cpp.

◆ rect

rect rect QGraphicsRectItem rect

[3]

[4]

[5]

Definition at line 51 of file src_gui_graphicsview_qgraphicsitem.cpp.

◆ scene

[11]

[12]

Definition at line 116 of file src_gui_graphicsview_qgraphicsitem.cpp.

◆ xform

QTransform xform = item->deviceTransform(view->viewportTransform())

[18]

[19]

Definition at line 204 of file src_gui_graphicsview_qgraphicsitem.cpp.