![]() |
Qt 6.x
The Qt SDK
|
#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/qtimer.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"
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 |
|
inlinestatic |
Definition at line 797 of file qgraphicsitem.cpp.
References Q_ASSERT, and rect.
Referenced by QGraphicsItem::boundingRegion(), QGraphicsItem::collidesWithPath(), QtPrivate::intersect_path(), QtPrivate::intersect_point(), QtPrivate::intersect_rect(), QGraphicsSceneIndex::items(), QGraphicsSceneIndex::items(), and QGraphicsSceneIndex::items().
bool _qt_movableAncestorIsSelected | ( | const QGraphicsItem * | item | ) |
Definition at line 7042 of file qgraphicsitem.cpp.
References _qt_movableAncestorIsSelected(), item, QGraphicsItem::ItemIsMovable, parent, and QGraphicsItem::parentItem().
Referenced by _qt_movableAncestorIsSelected(), and QGraphicsItemPrivate::movableAncestorIsSelected().
|
static |
Definition at line 11148 of file qgraphicsitem.cpp.
References debug, QGraphicsItem::flags(), QtDebugUtils::formatQPoint(), item, parent, QGraphicsItem::parentItem(), QGraphicsItem::pos(), and QGraphicsItem::zValue().
Referenced by operator<<(), and operator<<().
QDebug operator<< | ( | QDebug | debug, |
const QGraphicsItem * | item | ||
) |
Definition at line 11160 of file qgraphicsitem.cpp.
References debug, formatGraphicsItemHelper(), item, o, and QGraphicsItem::toGraphicsObject().
QDebug operator<< | ( | QDebug | debug, |
const QGraphicsObject * | item | ||
) |
Definition at line 11191 of file qgraphicsitem.cpp.
References debug, formatGraphicsItemHelper(), and item.
QDebug operator<< | ( | QDebug | debug, |
QGraphicsItem::GraphicsItemChange | change | ||
) |
Definition at line 11209 of file qgraphicsitem.cpp.
References debug, QGraphicsItem::ItemChildAddedChange, QGraphicsItem::ItemChildRemovedChange, QGraphicsItem::ItemCursorChange, QGraphicsItem::ItemCursorHasChanged, QGraphicsItem::ItemEnabledChange, QGraphicsItem::ItemEnabledHasChanged, QGraphicsItem::ItemFlagsChange, QGraphicsItem::ItemFlagsHaveChanged, QGraphicsItem::ItemOpacityChange, QGraphicsItem::ItemOpacityHasChanged, QGraphicsItem::ItemParentChange, QGraphicsItem::ItemParentHasChanged, QGraphicsItem::ItemPositionChange, QGraphicsItem::ItemPositionHasChanged, QGraphicsItem::ItemRotationChange, QGraphicsItem::ItemRotationHasChanged, QGraphicsItem::ItemScaleChange, QGraphicsItem::ItemScaleHasChanged, QGraphicsItem::ItemSceneChange, QGraphicsItem::ItemSceneHasChanged, QGraphicsItem::ItemScenePositionHasChanged, QGraphicsItem::ItemSelectedChange, QGraphicsItem::ItemSelectedHasChanged, QGraphicsItem::ItemToolTipChange, QGraphicsItem::ItemToolTipHasChanged, QGraphicsItem::ItemTransformChange, QGraphicsItem::ItemTransformHasChanged, QGraphicsItem::ItemTransformOriginPointChange, QGraphicsItem::ItemTransformOriginPointHasChanged, QGraphicsItem::ItemVisibleChange, QGraphicsItem::ItemVisibleHasChanged, QGraphicsItem::ItemZValueChange, QGraphicsItem::ItemZValueHasChanged, and str.
QDebug operator<< | ( | QDebug | debug, |
QGraphicsItem::GraphicsItemFlag | flag | ||
) |
Definition at line 11317 of file qgraphicsitem.cpp.
References debug, QGraphicsItem::ItemAcceptsInputMethod, QGraphicsItem::ItemClipsChildrenToShape, QGraphicsItem::ItemClipsToShape, QGraphicsItem::ItemContainsChildrenInShape, QGraphicsItem::ItemDoesntPropagateOpacityToChildren, QGraphicsItem::ItemHasNoContents, QGraphicsItem::ItemIgnoresParentOpacity, QGraphicsItem::ItemIgnoresTransformations, QGraphicsItem::ItemIsFocusable, QGraphicsItem::ItemIsFocusScope, QGraphicsItem::ItemIsMovable, QGraphicsItem::ItemIsPanel, QGraphicsItem::ItemIsSelectable, QGraphicsItem::ItemNegativeZStacksBehindParent, QGraphicsItem::ItemSendsGeometryChanges, QGraphicsItem::ItemSendsScenePositionChanges, QGraphicsItem::ItemStacksBehindParent, QGraphicsItem::ItemStopsClickFocusPropagation, QGraphicsItem::ItemStopsFocusHandling, QGraphicsItem::ItemUsesExtendedStyleOption, and str.
Definition at line 11386 of file qgraphicsitem.cpp.
void Q_WIDGETS_EXPORT qt_graphicsItem_highlightSelected | ( | QGraphicsItem * | item, |
QPainter * | painter, | ||
const QStyleOptionGraphicsItem * | option | ||
) |
Highlights item as selected.
Definition at line 7493 of file qgraphicsitem.cpp.
References QRectF::adjusted(), QColor::blue(), QGraphicsItem::boundingRect(), Qt::DashLine, QPainter::drawRect(), QColor::green(), QRectF::height(), item, QTransform::mapRect(), Qt::NoBrush, painter, qFuzzyIsNull(), qMax(), qMin(), QColor::red(), QPainter::setBrush(), QPainter::setPen(), Qt::SolidLine, QPainter::transform(), QGraphicsPathItem::Type, QGraphicsItem::type(), QGraphicsRectItem::Type, QGraphicsEllipseItem::Type, QGraphicsPolygonItem::Type, QGraphicsLineItem::Type, QGraphicsSimpleTextItem::Type, and QRectF::width().
Referenced by QGraphicsPixmapItem::paint(), QGraphicsTextItem::paint(), QGraphicsSimpleTextItem::paint(), QGraphicsPathItem::paint(), QGraphicsRectItem::paint(), QGraphicsEllipseItem::paint(), QGraphicsPolygonItem::paint(), QGraphicsLineItem::paint(), and QGraphicsSvgItem::paint().
|
static |
Returns a QPainterPath of path when stroked with the pen. Ignoring dash pattern.
Definition at line 822 of file qgraphicsitem.cpp.
References QPainterPath::addPath(), QPainterPathStroker::createStroke(), Qt::NoPen, QPainterPathStroker::setCapStyle(), QPainterPathStroker::setJoinStyle(), QPainterPathStroker::setMiterLimit(), and QPainterPathStroker::setWidth().
Referenced by QGraphicsPathItem::shape(), QGraphicsRectItem::shape(), QGraphicsEllipseItem::shape(), QGraphicsPolygonItem::shape(), and QGraphicsLineItem::shape().
|
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 5052 of file qgraphicsitem.cpp.
References item, other(), and rect.
Referenced by QGraphicsItem::isObscured(), and QGraphicsItem::isObscuredBy().
QPainterPath qt_regionToPath | ( | const QRegion & | region | ) |
Definition at line 1007 of file qregion.cpp.
Referenced by QGraphicsPixmapItemPrivate::updateShape().
|
static |
Definition at line 10492 of file qgraphicsitem.cpp.
References i, layout, line, and qMax().
Referenced by QGraphicsSimpleTextItem::paint(), and QGraphicsSimpleTextItemPrivate::updateBoundingRect().