#include <QtCore/qglobal.h>
#include <QtCore/qobject.h>
#include <QtCore/qvariant.h>
#include <QtCore/qrect.h>
#include <QtCore/qscopedpointer.h>
#include <QtGui/qpainterpath.h>
#include <QtGui/qpixmap.h>
Go to the source code of this file.
◆ operator<<() [1/5]
Definition at line 11946 of file qgraphicsitem.cpp.
Referenced by qgraphicsitem_cast().
11949 debug <<
"QGraphicsItem(0)";
11954 debug << o->metaObject()->className();
11956 debug <<
"QGraphicsItem";
11957 debug <<
"(this =" << (
void*)item
11958 <<
", parent =" << (
void*)item->
parentItem()
11959 <<
", pos =" << item->
pos()
11960 <<
", z =" << item->
zValue() <<
", flags = " 11961 << item->
flags() <<
")";
QPointF pos() const
Returns the position of the item in parent coordinates.
qreal zValue() const
Returns the Z-value of the item.
QGraphicsObject * toGraphicsObject()
Return the graphics item cast to a QGraphicsObject, if the class is actually a graphics object...
GraphicsItemFlags flags() const
Returns this item's flags.
QGraphicsItem * parentItem() const
Returns a pointer to this item's parent item.
The QGraphicsObject class provides a base class for all graphics items that require signals...
◆ operator<<() [2/5]
Definition at line 11965 of file qgraphicsitem.cpp.
11968 debug <<
"QGraphicsObject(0)";
11976 <<
", pos = " << item->
pos()
11977 <<
", z = " << item->
zValue() <<
", flags = " 11978 << item->
flags() <<
')';
11979 return debug.
space();
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
qreal zValue() const
Returns the Z-value of the item.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
GraphicsItemFlags flags() const
Returns this item's flags.
QPointF pos
the position of the item
QGraphicsItem * parentItem() const
Returns a pointer to this item's parent item.
QString objectName() const
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
virtual const QMetaObject * metaObject() const
Returns a pointer to the meta-object of this object.
◆ operator<<() [3/5]
Definition at line 11982 of file qgraphicsitem.cpp.
11984 const char *str =
"UnknownChange";
11987 str =
"ItemChildAddedChange";
11990 str =
"ItemChildRemovedChange";
11993 str =
"ItemCursorChange";
11996 str =
"ItemCursorHasChanged";
11999 str =
"ItemEnabledChange";
12002 str =
"ItemEnabledHasChanged";
12005 str =
"ItemFlagsChange";
12008 str =
"ItemFlagsHaveChanged";
12011 str =
"ItemMatrixChange";
12014 str =
"ItemParentChange";
12017 str =
"ItemParentHasChanged";
12020 str =
"ItemPositionChange";
12023 str =
"ItemPositionHasChanged";
12026 str =
"ItemSceneChange";
12029 str =
"ItemSceneHasChanged";
12032 str =
"ItemSelectedChange";
12035 str =
"ItemSelectedHasChanged";
12038 str =
"ItemToolTipChange";
12041 str =
"ItemToolTipHasChanged";
12044 str =
"ItemTransformChange";
12047 str =
"ItemTransformHasChanged";
12050 str =
"ItemVisibleChange";
12053 str =
"ItemVisibleHasChanged";
12056 str =
"ItemZValueChange";
12059 str =
"ItemZValueHasChanged";
12062 str =
"ItemOpacityChange";
12065 str =
"ItemOpacityHasChanged";
12068 str =
"ItemScenePositionHasChanged";
12071 str =
"ItemRotationChange";
12074 str =
"ItemRotationHasChanged";
12077 str =
"ItemScaleChange";
12080 str =
"ItemScaleHasChanged";
12083 str =
"ItemTransformOriginPointChange";
12086 str =
"ItemTransformOriginPointHasChanged";
◆ operator<<() [4/5]
Definition at line 12093 of file qgraphicsitem.cpp.
12095 const char *str =
"UnknownFlag";
12098 str =
"ItemIsMovable";
12101 str =
"ItemIsSelectable";
12104 str =
"ItemIsFocusable";
12107 str =
"ItemClipsToShape";
12110 str =
"ItemClipsChildrenToShape";
12113 str =
"ItemIgnoresTransformations";
12116 str =
"ItemIgnoresParentOpacity";
12119 str =
"ItemDoesntPropagateOpacityToChildren";
12122 str =
"ItemStacksBehindParent";
12125 str =
"ItemUsesExtendedStyleOption";
12128 str =
"ItemHasNoContents";
12131 str =
"ItemSendsGeometryChanges";
12134 str =
"ItemAcceptsInputMethod";
12137 str =
"ItemNegativeZStacksBehindParent";
12140 str =
"ItemIsPanel";
12143 str =
"ItemIsFocusScope";
12146 str =
"ItemSendsScenePositionChanges";
12149 str =
"ItemStopsClickFocusPropagation";
12152 str =
"ItemStopsFocusHandling";
◆ operator<<() [5/5]
Definition at line 12159 of file qgraphicsitem.cpp.
12163 for (
int i = 0; i < 17; ++i) {
12164 if (flags & (1 << i)) {
GraphicsItemFlag
This enum describes different flags that you can set on an item to toggle different features in the i...
◆ qgraphicsitem_cast() [1/2]
Definition at line 1139 of file qgraphicsitem.h.
1142 || (item && int(static_cast<T>(0)->
Type) == item->
type()) ? static_cast<T>(item) : 0;
The type value returned by the virtual type() function in standard graphics item classes in Qt...
virtual int type() const
Returns the type of an item as an int.
◆ qgraphicsitem_cast() [2/2]
Definition at line 1145 of file qgraphicsitem.h.
1148 || (item && int(static_cast<T>(0)->
Type) == item->
type()) ? static_cast<T>(item) : 0;
The type value returned by the virtual type() function in standard graphics item classes in Qt...
virtual int type() const
Returns the type of an item as an int.