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
qgraphicsitem.cpp File Reference

(87806f5cad6e4ce75a899598c15c126995682562)

#include "qgraphicsitem.h"
#include "qgraphicsscene.h"
#include "qgraphicsscene_p.h"
#include "qgraphicssceneevent.h"
#include "qgraphicsview.h"
#include "qgraphicswidget.h"
#include "qgraphicsproxywidget.h"
#include "qgraphicsscenebsptreeindex_p.h"
#include <QtCore/qbitarray.h>
#include <QtCore/qpoint.h>
#include <QtCore/qstack.h>
#include <QtCore/qvariant.h>
#include <QtCore/qvarlengtharray.h>
#include <QtCore/qnumeric.h>
#include <QtWidgets/qapplication.h>
#include <QtGui/qbitmap.h>
#include <QtGui/qpainter.h>
#include <QtGui/qpainterpath.h>
#include <QtGui/qpixmapcache.h>
#include <QtWidgets/qstyleoption.h>
#include <QtGui/qevent.h>
#include <QtGui/qinputmethod.h>
#include <private/qgraphicsitem_p.h>
#include <private/qgraphicswidget_p.h>
#include <private/qwidgettextcontrol_p.h>
#include <private/qtextdocumentlayout_p.h>
#include <private/qtextengine_p.h>
#include <private/qwidget_p.h>
#include <private/qapplication_p.h>
#include <private/qgesturemanager_p.h>
#include <private/qdebug_p.h>
#include "moc_qgraphicsitem.cpp"
Include dependency graph for qgraphicsitem.cpp:

Go to the source code of this file.

Classes

class  QGraphicsItemCustomDataStore
class  QAbstractGraphicsShapeItemPrivate
class  QGraphicsPathItemPrivate
class  QGraphicsRectItemPrivate
class  QGraphicsEllipseItemPrivate
class  QGraphicsPolygonItemPrivate
class  QGraphicsLineItemPrivate
class  QGraphicsPixmapItemPrivate
class  QGraphicsTextItemPrivate
class  QGraphicsSimpleTextItemPrivate
class  QGraphicsItemGroupPrivate

Functions

static QT_BEGIN_NAMESPACE void _q_adjustRect (QRect *rect)
static QPainterPath qt_graphicsItem_shapeFromPath (const QPainterPath &path, const QPen &pen)
static bool qt_QGraphicsItem_isObscured (const QGraphicsItem *item, const QGraphicsItem *other, const QRectF &rect)
bool _qt_movableAncestorIsSelected (const QGraphicsItem *item)
void Q_WIDGETS_EXPORT qt_graphicsItem_highlightSelected (QGraphicsItem *item, QPainter *painter, const QStyleOptionGraphicsItem *option)
Q_GUI_EXPORT QPainterPath qt_regionToPath (const QRegion &region)
static QRectF setupTextLayout (QTextLayout *layout)
static void formatGraphicsItemHelper (QDebug debug, const QGraphicsItem *item)
QDebug operator<< (QDebug debug, const QGraphicsItem *item)
QDebug operator<< (QDebug debug, const QGraphicsObject *item)
QDebug operator<< (QDebug debug, QGraphicsItem::GraphicsItemChange change)
QDebug operator<< (QDebug debug, QGraphicsItem::GraphicsItemFlag flag)
QDebug operator<< (QDebug debug, QGraphicsItem::GraphicsItemFlags flags)

Function Documentation

◆ _q_adjustRect()

QT_BEGIN_NAMESPACE void _q_adjustRect ( QRect * rect)
inlinestatic

Definition at line 799 of file qgraphicsitem.cpp.

◆ _qt_movableAncestorIsSelected()

bool _qt_movableAncestorIsSelected ( const QGraphicsItem * item)

Definition at line 7048 of file qgraphicsitem.cpp.

◆ formatGraphicsItemHelper()

void formatGraphicsItemHelper ( QDebug debug,
const QGraphicsItem * item )
static

Definition at line 11164 of file qgraphicsitem.cpp.

◆ operator<<() [1/5]

QDebug operator<< ( QDebug debug,
const QGraphicsItem * item )

Definition at line 11176 of file qgraphicsitem.cpp.

References QPainter::QWidget.

Here is the call graph for this function:

◆ operator<<() [2/5]

QDebug operator<< ( QDebug debug,
const QGraphicsObject * item )

Definition at line 11205 of file qgraphicsitem.cpp.

◆ operator<<() [3/5]

QDebug operator<< ( QDebug debug,
QGraphicsItem::GraphicsItemChange change )

Definition at line 11221 of file qgraphicsitem.cpp.

◆ operator<<() [4/5]

QDebug operator<< ( QDebug debug,
QGraphicsItem::GraphicsItemFlag flag )

Definition at line 11329 of file qgraphicsitem.cpp.

◆ operator<<() [5/5]

QDebug operator<< ( QDebug debug,
QGraphicsItem::GraphicsItemFlags flags )

Definition at line 11398 of file qgraphicsitem.cpp.

◆ qt_graphicsItem_highlightSelected()

void Q_WIDGETS_EXPORT qt_graphicsItem_highlightSelected ( QGraphicsItem * item,
QPainter * painter,
const QStyleOptionGraphicsItem * option )

Highlights item as selected.

Definition at line 7499 of file qgraphicsitem.cpp.

◆ qt_graphicsItem_shapeFromPath()

QPainterPath qt_graphicsItem_shapeFromPath ( const QPainterPath & path,
const QPen & pen )
static

Returns a QPainterPath of path when stroked with the pen. Ignoring dash pattern.

Definition at line 824 of file qgraphicsitem.cpp.

◆ qt_QGraphicsItem_isObscured()

bool qt_QGraphicsItem_isObscured ( const QGraphicsItem * item,
const QGraphicsItem * other,
const QRectF & rect )
static

Item obscurity helper function.

Returns true if the subrect rect of item's bounding rect is obscured by other (i.e., other's opaque area covers item's rect completely. other is assumed to already be "on top of" item wrt. stacking order.

Definition at line 5058 of file qgraphicsitem.cpp.

◆ qt_regionToPath()

Q_GUI_EXPORT QPainterPath qt_regionToPath ( const QRegion & region)
extern

Definition at line 1010 of file qregion.cpp.

◆ setupTextLayout()

QRectF setupTextLayout ( QTextLayout * layout)
static

Definition at line 10507 of file qgraphicsitem.cpp.