Qyoto  4.0.7
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
QtGui.QGraphicsObject Class Referenceabstract

The QGraphicsObject class provides a base class for all graphics items that require signals, slots and properties. More...

Inheritance diagram for QtGui.QGraphicsObject:
Collaboration diagram for QtGui.QGraphicsObject:

Public Member Functions

 QGraphicsObject (IQGraphicsItem parent=null)
  More...
 
override void CreateProxy ()
 
new void GrabGesture (Qt.GestureType type, Qt.GestureFlag flags=0)
  More...
 
new void UngrabGesture (Qt.GestureType type)
  More...
 
new void Dispose ()
 
virtual void Advance (int phase)
  More...
 
new QRegion BoundingRegion (QTransform itemToDeviceTransform)
  More...
 
new void ClearFocus ()
  More...
 
virtual bool CollidesWithItem (IQGraphicsItem other, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape)
  More...
 
virtual bool CollidesWithPath (QPainterPath path, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape)
  More...
 
new
System.Collections.Generic.List
< IQGraphicsItem
CollidingItems (Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape)
  More...
 
new IQGraphicsItem CommonAncestorItem (IQGraphicsItem other)
  More...
 
virtual bool Contains (QPointF point)
  More...
 
new object Data (int key)
  More...
 
new QTransform DeviceTransform (QTransform viewportTransform)
  More...
 
new void EnsureVisible ()
  More...
 
new void EnsureVisible (QRectF rect, int xmargin=50, int ymargin=50)
  More...
 
new void EnsureVisible (double x, double y, double w, double h, int xmargin=50, int ymargin=50)
  More...
 
new IQGraphicsItem FocusItem ()
  More...
 
new IQGraphicsItem FocusScopeItem ()
 
new void GrabKeyboard ()
  More...
 
new void GrabMouse ()
  More...
 
new void Hide ()
  More...
 
new void InstallSceneEventFilter (IQGraphicsItem filterItem)
  More...
 
new bool IsAncestorOf (IQGraphicsItem child)
  More...
 
new bool IsBlockedByModalPanel (IQGraphicsItem blockingPanel=null)
  More...
 
new bool IsObscured ()
  More...
 
new bool IsObscured (QRectF rect)
  More...
 
new bool IsObscured (double x, double y, double w, double h)
  More...
 
virtual bool IsObscuredBy (IQGraphicsItem item)
  More...
 
new bool IsVisibleTo (IQGraphicsItem parent)
  More...
 
new QTransform ItemTransform (IQGraphicsItem other)
  More...
 
new QTransform ItemTransform (IQGraphicsItem other, ref bool ok)
  More...
 
new QPointF MapFromItem (IQGraphicsItem item, QPointF point)
  More...
 
new QPolygonF MapFromItem (IQGraphicsItem item, QRectF rect)
  More...
 
new QPolygonF MapFromItem (IQGraphicsItem item, QPolygonF polygon)
  More...
 
new QPainterPath MapFromItem (IQGraphicsItem item, QPainterPath path)
  More...
 
new QPointF MapFromItem (IQGraphicsItem item, double x, double y)
  More...
 
new QPolygonF MapFromItem (IQGraphicsItem item, double x, double y, double w, double h)
  More...
 
new QPointF MapFromParent (QPointF point)
  More...
 
new QPolygonF MapFromParent (QRectF rect)
  More...
 
new QPolygonF MapFromParent (QPolygonF polygon)
  More...
 
new QPainterPath MapFromParent (QPainterPath path)
  More...
 
new QPointF MapFromParent (double x, double y)
  More...
 
new QPolygonF MapFromParent (double x, double y, double w, double h)
  More...
 
new QPointF MapFromScene (QPointF point)
  More...
 
new QPolygonF MapFromScene (QRectF rect)
  More...
 
new QPolygonF MapFromScene (QPolygonF polygon)
  More...
 
new QPainterPath MapFromScene (QPainterPath path)
  More...
 
new QPointF MapFromScene (double x, double y)
  More...
 
new QPolygonF MapFromScene (double x, double y, double w, double h)
  More...
 
new QRectF MapRectFromItem (IQGraphicsItem item, QRectF rect)
  More...
 
new QRectF MapRectFromItem (IQGraphicsItem item, double x, double y, double w, double h)
  More...
 
new QRectF MapRectFromParent (QRectF rect)
  More...
 
new QRectF MapRectFromParent (double x, double y, double w, double h)
  More...
 
new QRectF MapRectFromScene (QRectF rect)
  More...
 
new QRectF MapRectFromScene (double x, double y, double w, double h)
  More...
 
new QRectF MapRectToItem (IQGraphicsItem item, QRectF rect)
  More...
 
new QRectF MapRectToItem (IQGraphicsItem item, double x, double y, double w, double h)
  More...
 
new QRectF MapRectToParent (QRectF rect)
  More...
 
new QRectF MapRectToParent (double x, double y, double w, double h)
  More...
 
new QRectF MapRectToScene (QRectF rect)
  More...
 
new QRectF MapRectToScene (double x, double y, double w, double h)
  More...
 
new QPointF MapToItem (IQGraphicsItem item, QPointF point)
  More...
 
new QPolygonF MapToItem (IQGraphicsItem item, QRectF rect)
  More...
 
new QPolygonF MapToItem (IQGraphicsItem item, QPolygonF polygon)
  More...
 
new QPainterPath MapToItem (IQGraphicsItem item, QPainterPath path)
  More...
 
new QPointF MapToItem (IQGraphicsItem item, double x, double y)
  More...
 
new QPolygonF MapToItem (IQGraphicsItem item, double x, double y, double w, double h)
  More...
 
new QPointF MapToParent (QPointF point)
  More...
 
new QPolygonF MapToParent (QRectF rect)
  More...
 
new QPolygonF MapToParent (QPolygonF polygon)
  More...
 
new QPainterPath MapToParent (QPainterPath path)
  More...
 
new QPointF MapToParent (double x, double y)
  More...
 
new QPolygonF MapToParent (double x, double y, double w, double h)
  More...
 
new QPointF MapToScene (QPointF point)
  More...
 
new QPolygonF MapToScene (QRectF rect)
  More...
 
new QPolygonF MapToScene (QPolygonF polygon)
  More...
 
new QPainterPath MapToScene (QPainterPath path)
  More...
 
new QPointF MapToScene (double x, double y)
  More...
 
new QPolygonF MapToScene (double x, double y, double w, double h)
  More...
 
new void MoveBy (double dx, double dy)
  More...
 
abstract void Paint (QPainter painter, QStyleOptionGraphicsItem option, QWidget widget=null)
  More...
 
new void RemoveSceneEventFilter (IQGraphicsItem filterItem)
  More...
 
new void ResetMatrix ()
  More...
 
new void ResetTransform ()
  More...
 
new void Rotate (double angle)
  More...
 
new double Scale ()
  More...
 
new void Scale (double sx, double sy)
  More...
 
new void Scroll (double dx, double dy)
  More...
 
new void Scroll (double dx, double dy, QRectF rect)
  More...
 
new void SetActive (bool active)
  More...
 
new void SetCacheMode (QGraphicsItem.CacheMode mode, QSize cacheSize)
  More...
 
new void SetData (int key, object value)
  More...
 
new void SetEnabled (bool enabled)
  More...
 
new void SetFlag (QGraphicsItem.GraphicsItemFlag flag, bool enabled=true)
  More...
 
new void SetFocus (Qt.FocusReason focusReason=Qt.FocusReason.OtherFocusReason)
  More...
 
new void SetMatrix (QMatrix matrix, bool combine=false)
  More...
 
new void SetPos (double x, double y)
  More...
 
new void SetScale (double scale)
  More...
 
new void SetSelected (bool selected)
  More...
 
new void SetTransform (QTransform matrix, bool combine=false)
  More...
 
new void SetTransformOriginPoint (double ax, double ay)
  More...
 
new void SetVisible (bool visible)
  More...
 
new void Shear (double sh, double sv)
  More...
 
new void Show ()
  More...
 
new void StackBefore (IQGraphicsItem sibling)
  More...
 
new QGraphicsObject ToGraphicsObject ()
  More...
 
new void Translate (double dx, double dy)
  More...
 
new void UngrabKeyboard ()
  More...
 
new void UngrabMouse ()
  More...
 
new void UnsetCursor ()
  More...
 
new void Update ()
  More...
 
new void Update (QRectF rect)
  More...
 
new void Update (double x, double y, double width, double height)
  More...
 
- Public Member Functions inherited from QtCore.QObject
 QObject (QObject parent=null)
  More...
 
new bool BlockSignals (bool b)
  More...
 
new bool Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
  More...
 
new void DeleteLater ()
  More...
 
new bool Disconnect (QObject receiver, string member=null)
  More...
 
new bool Disconnect (string signal=null, QObject receiver=null, string member=null)
  More...
 
new void DumpObjectInfo ()
  More...
 
new void DumpObjectTree ()
  More...
 
virtual bool OnEvent (QEvent e)
  More...
 
virtual bool EventFilter (QObject watched, QEvent @event)
  More...
 
new bool Inherits (string classname)
  More...
 
new void InstallEventFilter (QObject filterObj)
  More...
 
new void KillTimer (int id)
  More...
 
new object Property (string name)
  More...
 
new void RemoveEventFilter (QObject obj)
  More...
 
new bool SetProperty (string name, object value)
  More...
 
new void SetUserData (uint id, QObjectUserData data)
 
new int StartTimer (int interval)
  More...
 
new QObjectUserData UserData (uint id)
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.Qt
delegate QTextStream FuncQTextStreamQTextStream (QTextStream qTextStream)
 
delegate void ActionQtMsgTypeString (QtMsgType qtMsgType, string @string)
 
delegate QObject FuncQObject ()
 
delegate string FuncStringQByteArray (QByteArray qByteArray)
 
delegate QByteArray FuncQByteArrayString (string @string)
 
- Public Member Functions inherited from QtGui.IQGraphicsItem
bool CollidesWithItem (IQGraphicsItem other, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape)
  More...
 
bool CollidesWithPath (QPainterPath path, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape)
  More...
 
new
System.Collections.Generic.List
< IQGraphicsItem
CollidingItems (Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape)
  More...
 
new void SetFocus (Qt.FocusReason focusReason=Qt.FocusReason.OtherFocusReason)
  More...
 

Static Public Member Functions

static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtCore.QObject
static bool Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
  More...
 
static bool Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
  More...
 
static bool Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member)
  More...
 
static bool Disconnect (QObject sender, string signal, QObject receiver, string member)
  More...
 
static string Tr (string s, string c=null)
  More...
 
static string Tr (string s, string c, int n)
  More...
 
static string TrUtf8 (string s, string c=null)
  More...
 
static string TrUtf8 (string s, string c, int n)
  More...
 
- Static Public Member Functions inherited from QtCore.Qt
static QDataStream Write (QDataStream s, object p)
 
static QDataStream Write (QDataStream stream, QSizeF size)
  More...
 
static QDataStream Write (QDataStream stream, QPoint point)
  More...
 
static QTextStream Write (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Write (QDataStream stream, QLineF line)
  More...
 
static QDataStream Write (QDataStream stream, QPointF point)
  More...
 
static QDataStream Write (QDataStream @out, QChar chr)
  More...
 
static QDataStream Write (QDataStream @out, QByteArray ba)
  More...
 
static QDataStream Write (QDataStream stream, QEasingCurve easing)
  More...
 
static QDataStream Write (QDataStream stream, QRectF rectangle)
  More...
 
static QDataStream Write (QDataStream @out, QDateTime dateTime)
  More...
 
static QDataStream Write (QDataStream @out, QUrl url)
  More...
 
static QDataStream Write (QDataStream @out, QTime time)
  More...
 
static QDataStream Write (QDataStream arg1, QLocale arg2)
 
static QDataStream Write (QDataStream @out, QBitArray ba)
  More...
 
static QDataStream Write (QDataStream s, QUuid id)
  More...
 
static QDataStream Write (QDataStream stream, QLine line)
  More...
 
static QDataStream Write (QDataStream @out, QDate date)
  More...
 
static QDataStream Write (QDataStream @out, QRegExp regExp)
  More...
 
static QDataStream Write (QDataStream stream, QRect rectangle)
  More...
 
static QDataStream Write (QDataStream stream, QSize size)
  More...
 
static QDataStream Write (QDataStream s, QVariant.Type p)
 
static QDataStream Write (QDataStream arg1, string arg2)
 
static QDataStream Write (QDataStream @out, System.Collections.Generic.List< string > list)
  More...
 
static QDataStream Read (QDataStream @in, QChar chr)
  More...
 
static QDataStream Read (QDataStream arg1, QLocale arg2)
 
static QDataStream Read (QDataStream stream, QRect rectangle)
  More...
 
static QDataStream Read (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Read (QDataStream @in, QDate date)
  More...
 
static QDataStream Read (QDataStream @in, QUrl url)
  More...
 
static QDataStream Read (QDataStream s, QUuid id)
  More...
 
static QTextStream Read (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Read (QDataStream stream, QLineF line)
  More...
 
static QDataStream Read (QDataStream stream, QRectF rectangle)
  More...
 
static QDataStream Read (QDataStream stream, QPointF point)
  More...
 
static QDataStream Read (QDataStream stream, QLine line)
  More...
 
static QDataStream Read (QDataStream @in, QBitArray ba)
  More...
 
static QDataStream Read (QDataStream stream, QSize size)
  More...
 
static QDataStream Read (QDataStream @in, QDateTime dateTime)
  More...
 
static QDataStream Read (QDataStream @in, QTime time)
  More...
 
static QDataStream Read (QDataStream stream, QPoint point)
  More...
 
static QDataStream Read (QDataStream @in, QRegExp regExp)
  More...
 
static QDataStream Read (QDataStream s, object p)
 
static QDataStream Read (QDataStream @in, QByteArray ba)
  More...
 
static QDataStream Read (QDataStream stream, QSizeF size)
  More...
 
static QDataStream Read (QDataStream arg1, string arg2)
 
static QDataStream Read (QDataStream s, QVariant.Type p)
 
static QDataStream Read (QDataStream @in, System.Collections.Generic.List< string > list)
  More...
 
static double QAcos (double v)
  More...
 
static void QAddPostRoutine (System.Action ptr)
  More...
 
static double QAsin (double v)
  More...
 
static double QAtan (double v)
  More...
 
static double QAtan2 (double x, double y)
  More...
 
static void QBadAlloc ()
 
static int QCeil (double v)
  More...
 
static ushort QChecksum (string s, uint len)
  More...
 
static QByteArray QCompress (QByteArray data, int compressionLevel=-1)
  More...
 
static QByteArray QCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1)
  More...
 
static double QCos (double v)
  More...
 
static double QExp (double v)
  More...
 
static double QFabs (double v)
 
static double QFastCos (double x)
 
static double QFastSin (double x)
 
static string QFlagLocation (string method)
 
static int QFloor (double v)
  More...
 
static bool QFuzzyCompare (double p1, double p2)
  More...
 
static bool QFuzzyCompare (float p1, float p2)
  More...
 
static bool QFuzzyIsNull (double d)
 
static bool QFuzzyIsNull (float f)
 
static uint QHash (QBitArray key)
  More...
 
static uint QHash (QChar key)
  More...
 
static uint QHash (QStringRef key)
 
static uint QHash (QUrl url)
  More...
 
static uint QHash (QPersistentModelIndex index)
 
static uint QHash (QByteArray key)
  More...
 
static uint QHash (QModelIndex index)
 
static uint QHash (uint key)
  More...
 
static uint QHash (char key)
  More...
 
static uint QHash (byte key)
  More...
 
static uint QHash (short key)
  More...
 
static uint QHash (NativeLong key)
  More...
 
static uint QHash (ushort key)
  More...
 
static uint QHash (long key)
  More...
 
static uint QHash (ulong key)
  More...
 
static uint QHash (int key)
  More...
 
static uint QHash (string key)
  More...
 
static uint QHash (NativeULong key)
  More...
 
static Qt.ActionQtMsgTypeString QInstallMsgHandler (Qt.ActionQtMsgTypeString handler)
  More...
 
static int QIntCast (float f)
 
static int QIntCast (double f)
 
static bool QIsFinite (double d)
 
static bool QIsFinite (float f)
 
static bool QIsInf (float f)
 
static bool QIsInf (double d)
 
static bool QIsNaN (float f)
 
static bool QIsNaN (double d)
 
static bool QIsNull (float f)
 
static bool QIsNull (double d)
 
static double QLn (double v)
  More...
 
static double QPow (double x, double y)
  More...
 
static void QRegisterStaticPluginInstanceFunction (Qt.FuncQObject function)
  More...
 
static void QRemovePostRoutine (System.Action arg1)
 
static int QRound (double d)
  More...
 
static long QRound64 (double d)
  More...
 
static double QSin (double v)
  More...
 
static double QSqrt (double v)
  More...
 
static bool QStringComparisonHelper (QStringRef s1, string s2)
 
static double QTan (double v)
  More...
 
static QByteArray QUncompress (QByteArray data)
  More...
 
static QByteArray QUncompress (Pointer< byte > data, int nbytes)
  More...
 
static void Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size)
 
static QByteArray Qgetenv (string varName)
  More...
 
static bool Qputenv (string varName, QByteArray value)
  More...
 
static void Qsrand (uint seed)
  More...
 
static int Qstrcmp (QByteArray str1, QByteArray str2)
 
static int Qstrcmp (QByteArray str1, string str2)
 
static int Qstrcmp (string str1, QByteArray str2)
 
static int Qstrcmp (string str1, string str2)
  More...
 
static Pointer< sbyte > Qstrcpy (Pointer< sbyte > dst, string src)
  More...
 
static Pointer< sbyte > Qstrdup (string src)
  More...
 
static int Qstricmp (string str1, string str2)
  More...
 
static uint Qstrlen (string str)
  More...
 
static int Qstrncmp (string str1, string str2, uint len)
  More...
 
static Pointer< sbyte > Qstrncpy (Pointer< sbyte > dst, string src, uint len)
  More...
 
static int Qstrnicmp (string str1, string str2, uint len)
  More...
 
static uint Qstrnlen (string str, uint maxlen)
  More...
 

Protected Member Functions

 QGraphicsObject (System.Type dummy)
 
new void OnChildrenChanged ()
 
new void OnEnabledChanged ()
  More...
 
new void OnHeightChanged ()
 
new void OnOpacityChanged ()
  More...
 
new void OnParentChanged ()
  More...
 
new void OnRotationChanged ()
  More...
 
new void OnScaleChanged ()
  More...
 
new void UpdateMicroFocus ()
  More...
 
new void OnVisibleChanged ()
  More...
 
new void OnWidthChanged ()
 
new void OnXChanged ()
  More...
 
new void OnYChanged ()
  More...
 
new void OnZChanged ()
  More...
 
new void AddToIndex ()
 
virtual void OnContextMenuEvent (QGraphicsSceneContextMenuEvent @event)
 
virtual void OnDragEnterEvent (QGraphicsSceneDragDropEvent @event)
 
virtual void OnDragLeaveEvent (QGraphicsSceneDragDropEvent @event)
 
virtual void OnDragMoveEvent (QGraphicsSceneDragDropEvent @event)
 
virtual void OnDropEvent (QGraphicsSceneDragDropEvent @event)
 
virtual object extension (object variant)
 
virtual void OnFocusInEvent (QFocusEvent @event)
 
virtual void OnFocusOutEvent (QFocusEvent @event)
 
virtual void OnHoverEnterEvent (QGraphicsSceneHoverEvent @event)
 
virtual void OnHoverLeaveEvent (QGraphicsSceneHoverEvent @event)
 
virtual void OnHoverMoveEvent (QGraphicsSceneHoverEvent @event)
 
virtual void OnInputMethodEvent (QInputMethodEvent @event)
 
virtual object InputMethodQuery (Qt.InputMethodQuery query)
 
virtual object ItemChange (QGraphicsItem.GraphicsItemChange change, object value)
 
virtual void OnKeyPressEvent (QKeyEvent @event)
 
virtual void OnKeyReleaseEvent (QKeyEvent @event)
 
virtual void OnMouseDoubleClickEvent (QGraphicsSceneMouseEvent @event)
 
virtual void OnMouseMoveEvent (QGraphicsSceneMouseEvent @event)
 
virtual void OnMousePressEvent (QGraphicsSceneMouseEvent @event)
 
virtual void OnMouseReleaseEvent (QGraphicsSceneMouseEvent @event)
 
new void PrepareGeometryChange ()
 
new void RemoveFromIndex ()
 
virtual bool OnSceneEvent (QEvent @event)
 
virtual bool SceneEventFilter (IQGraphicsItem watched, QEvent @event)
 
virtual void SetExtension (QGraphicsItem.Extension extension, object variant)
 
virtual bool SupportsExtension (QGraphicsItem.Extension extension)
 
virtual void OnWheelEvent (QGraphicsSceneWheelEvent @event)
 
- Protected Member Functions inherited from QtCore.QObject
 QObject (System.Type dummy)
 
virtual void OnChildEvent (QChildEvent @event)
  More...
 
virtual void ConnectNotify (string signal)
  More...
 
virtual void OnCustomEvent (QEvent @event)
  More...
 
new void OnDestroyed (QObject obj=null)
  More...
 
virtual void DisconnectNotify (string signal)
  More...
 
new int Receivers (string signal)
  More...
 
virtual void OnTimerEvent (QTimerEvent @event)
  More...
 

Properties

Slot ParentChanged
  More...
 
Slot OpacityChanged
  More...
 
Slot VisibleChanged
  More...
 
Slot EnabledChanged
  More...
 
Slot XChanged
  More...
 
Slot YChanged
  More...
 
Slot ZChanged
  More...
 
Slot RotationChanged
  More...
 
Slot ScaleChanged
  More...
 
Slot ChildrenChanged
 
Slot WidthChanged
 
Slot HeightChanged
 
bool AcceptDrops [get, set]
  More...
 
bool AcceptHoverEvents [get, set]
  More...
 
bool AcceptTouchEvents [get, set]
  More...
 
Qt.MouseButton AcceptedMouseButtons [get, set]
  More...
 
bool AcceptsHoverEvents [get, set]
  More...
 
double BoundingRegionGranularity [get, set]
  More...
 
QGraphicsItem.CacheMode cacheMode [get, set]
  More...
 
QCursor Cursor [get, set]
  More...
 
bool FiltersChildEvents [get, set]
  More...
 
QGraphicsItem.GraphicsItemFlag Flags [get, set]
  More...
 
IQGraphicsItem FocusProxy [get, set]
  More...
 
QGraphicsEffect GraphicsEffect [get, set]
  More...
 
QGraphicsItemGroup Group [get, set]
  More...
 
bool HandlesChildEvents [get, set]
  More...
 
Qt.InputMethodHint InputMethodHints [get, set]
  More...
 
double Opacity [get, set]
  More...
 
QGraphicsItem.PanelModality panelModality [get, set]
  More...
 
IQGraphicsItem ParentItem [get, set]
  More...
 
QPointF Pos [get, set]
  More...
 
double Rotation [get, set]
  More...
 
string ToolTip [get, set]
  More...
 
QPointF TransformOriginPoint [get, set]
  More...
 
System.Collections.Generic.List
< QGraphicsTransform
Transformations [get, set]
  More...
 
double X [get, set]
  More...
 
double Y [get, set]
  More...
 
double ZValue [get, set]
  More...
 
QMatrix Matrix [get]
  More...
 
QTransform Transform [get]
  More...
 
System.Collections.Generic.List
< QObject
children [get]
 
virtual QRectF BoundingRect [get]
  More...
 
System.Collections.Generic.List
< IQGraphicsItem
ChildItems [get]
  More...
 
QRectF ChildrenBoundingRect [get]
  More...
 
QPainterPath ClipPath [get]
  More...
 
double EffectiveOpacity [get]
  More...
 
bool HasCursor [get]
  More...
 
bool HasFocus [get]
  More...
 
bool IsActive [get]
  More...
 
bool IsClipped [get]
  More...
 
bool IsEnabled [get]
  More...
 
bool IsPanel [get]
  More...
 
bool IsSelected [get]
  More...
 
bool IsUnderMouse [get]
  More...
 
bool IsVisible [get]
  More...
 
bool IsWidget [get]
  More...
 
bool IsWindow [get]
  More...
 
virtual QPainterPath OpaqueArea [get]
  More...
 
IQGraphicsItem Panel [get]
  More...
 
QGraphicsObject ParentObject [get]
  More...
 
QGraphicsWidget ParentWidget [get]
  More...
 
QGraphicsScene Scene [get]
  More...
 
QRectF SceneBoundingRect [get]
  More...
 
QMatrix SceneMatrix [get]
  More...
 
QPointF ScenePos [get]
  More...
 
QTransform SceneTransform [get]
  More...
 
virtual QPainterPath Shape [get]
  More...
 
IQGraphicsItem TopLevelItem [get]
  More...
 
QGraphicsWidget TopLevelWidget [get]
  More...
 
virtual int Type [get]
  More...
 
QGraphicsWidget Window [get]
  More...
 
new QGraphicsObject Parent [get, set]
 
new double Z [get, set]
 
new QGraphicsEffect Effect [get, set]
 
new double Width [get, set]
 
new double Height [get, set]
 
static new QMetaObject StaticMetaObject [get]
 
new IQGraphicsObjectSignals Emit [get]
 
- Properties inherited from QtCore.QObject
virtual EventHandler
< QEventArgs< QChildEvent > > 
ChildEvent
  More...
 
virtual EventHandler
< QEventArgs< QEvent > > 
CustomEvent
  More...
 
virtual EventHandler
< QEventArgs< QEvent > > 
Event
  More...
 
virtual EventHandler
< QEventArgs< QTimerEvent > > 
TimerEvent
  More...
 
Slot< QObjectDestroyedObj
  More...
 
Slot Destroyed
  More...
 
QObject Parent [get, set]
  More...
 
System.Collections.Generic.List
< QObject
Children [get]
  More...
 
System.Collections.Generic.List
< QByteArray
DynamicPropertyNames [get]
  More...
 
bool IsWidgetType [get]
  More...
 
static uint RegisterUserData [get]
 
QObject Sender [get]
  More...
 
int SenderSignalIndex [get]
  More...
 
bool SignalsBlocked [get]
  More...
 
virtual System.IntPtr SmokeObject [get, set]
 
new string ObjectName [get, set]
  More...
 
static new QMetaObject StaticMetaObject [get]
  More...
 
static new QMetaObject StaticQtMetaObject [get]
 
new IQObjectSignals Emit [get]
 
- Properties inherited from QtCore.Qt
static string QAppName [get]
 
static double QInf [get]
 
static double QQNaN [get]
 
static double QSNaN [get]
 
static bool QSharedBuild [get]
 
static string QVersion [get]
  More...
 
static int Qrand [get]
  More...
 
- Properties inherited from QtGui.IQGraphicsItem
System.Boolean AcceptDrops [get, set]
  More...
 
System.Boolean AcceptHoverEvents [get, set]
  More...
 
System.Boolean AcceptTouchEvents [get, set]
  More...
 
Qt.MouseButton AcceptedMouseButtons [get, set]
  More...
 
System.Boolean AcceptsHoverEvents [get, set]
  More...
 
System.Double BoundingRegionGranularity [get, set]
  More...
 
QGraphicsItem.CacheMode cacheMode [get, set]
  More...
 
QCursor Cursor [get, set]
  More...
 
System.Boolean FiltersChildEvents [get, set]
  More...
 
QGraphicsItem.GraphicsItemFlag Flags [get, set]
  More...
 
IQGraphicsItem FocusProxy [get, set]
  More...
 
QGraphicsEffect GraphicsEffect [get, set]
  More...
 
QGraphicsItemGroup Group [get, set]
  More...
 
System.Boolean HandlesChildEvents [get, set]
  More...
 
Qt.InputMethodHint InputMethodHints [get, set]
  More...
 
System.Double Opacity [get, set]
  More...
 
QGraphicsItem.PanelModality panelModality [get, set]
  More...
 
IQGraphicsItem ParentItem [get, set]
  More...
 
QPointF Pos [get, set]
  More...
 
System.Double Rotation [get, set]
  More...
 
System.String ToolTip [get, set]
  More...
 
QPointF TransformOriginPoint [get, set]
  More...
 
System.Collections.Generic.List
< QGraphicsTransform
Transformations [get, set]
  More...
 
System.Double X [get, set]
  More...
 
System.Double Y [get, set]
  More...
 
System.Double ZValue [get, set]
  More...
 
QMatrix Matrix [get]
  More...
 
QTransform Transform [get]
  More...
 
QRectF BoundingRect [get]
  More...
 
System.Collections.Generic.List
< IQGraphicsItem
ChildItems [get]
  More...
 
System.Collections.Generic.List
< IQGraphicsItem
Children [get]
  More...
 
QRectF ChildrenBoundingRect [get]
  More...
 
QPainterPath ClipPath [get]
  More...
 
System.Double EffectiveOpacity [get]
  More...
 
System.Boolean HasCursor [get]
  More...
 
System.Boolean HasFocus [get]
  More...
 
System.Boolean IsActive [get]
  More...
 
System.Boolean IsClipped [get]
  More...
 
System.Boolean IsEnabled [get]
  More...
 
System.Boolean IsPanel [get]
  More...
 
System.Boolean IsSelected [get]
  More...
 
System.Boolean IsUnderMouse [get]
  More...
 
System.Boolean IsVisible [get]
  More...
 
System.Boolean IsWidget [get]
  More...
 
System.Boolean IsWindow [get]
  More...
 
QPainterPath OpaqueArea [get]
  More...
 
IQGraphicsItem Panel [get]
  More...
 
QGraphicsObject ParentObject [get]
  More...
 
QGraphicsWidget ParentWidget [get]
  More...
 
QGraphicsScene Scene [get]
  More...
 
QRectF SceneBoundingRect [get]
  More...
 
QMatrix SceneMatrix [get]
  More...
 
QPointF ScenePos [get]
  More...
 
QTransform SceneTransform [get]
  More...
 
QPainterPath Shape [get]
  More...
 
IQGraphicsItem TopLevelItem [get]
  More...
 
QGraphicsWidget TopLevelWidget [get]
  More...
 
System.Int32 Type [get]
  More...
 
QGraphicsWidget Window [get]
  More...
 

Additional Inherited Members

- Public Types inherited from QtCore.Qt
enum  AlignmentFlag {
  AlignAbsolute = 16, AlignBottom = 64, AlignCenter = 132, AlignHCenter = 4,
  AlignHorizontal_Mask = 31, AlignJustify = 8, AlignLeading = 1, AlignLeft = 1,
  AlignRight = 2, AlignTop = 32, AlignTrailing = 2, AlignVCenter = 128,
  AlignVertical_Mask = 224
}
  More...
 
enum  AnchorAttribute { AnchorHref = 1, AnchorName = 0 }
  More...
 
enum  AnchorPoint {
  AnchorBottom = 5, AnchorHorizontalCenter = 1, AnchorLeft = 0, AnchorRight = 2,
  AnchorTop = 3, AnchorVerticalCenter = 4
}
  More...
 
enum  ApplicationAttribute {
  AA_AttributeCount = 12, AA_CaptureMultimediaKeys = 11, AA_DontCreateNativeWidgetSiblings = 4, AA_DontShowIconsInMenus = 2,
  AA_DontUseNativeMenuBar = 6, AA_ImmediateWidgetCreation = 0, AA_MSWindowsUseDirect3DByDefault = 1, AA_MacDontSwapCtrlAndMeta = 7,
  AA_MacPluginApplication = 5, AA_NativeWindows = 3, AA_S60DisablePartialScreenInputMode = 9, AA_S60DontConstructApplicationPanes = 8,
  AA_X11InitThreads = 10
}
  More...
 
enum  ArrowType {
  DownArrow = 2, LeftArrow = 3, NoArrow = 0, RightArrow = 4,
  UpArrow = 1
}
 
enum  AspectRatioMode { IgnoreAspectRatio = 0, KeepAspectRatio = 1, KeepAspectRatioByExpanding = 2 }
  More...
 
enum  Axis { XAxis = 0, YAxis = 1, ZAxis = 2 }
  More...
 
enum  BGMode { OpaqueMode = 1, TransparentMode = 0 }
  More...
 
enum  BrushStyle {
  BDiagPattern = 12, ConicalGradientPattern = 17, CrossPattern = 11, Dense1Pattern = 2,
  Dense2Pattern = 3, Dense3Pattern = 4, Dense4Pattern = 5, Dense5Pattern = 6,
  Dense6Pattern = 7, Dense7Pattern = 8, DiagCrossPattern = 14, FDiagPattern = 13,
  HorPattern = 9, LinearGradientPattern = 15, NoBrush = 0, RadialGradientPattern = 16,
  SolidPattern = 1, TexturePattern = 24, VerPattern = 10
}
  More...
 
enum  CaseSensitivity { CaseInsensitive = 0, CaseSensitive = 1 }
 
enum  CheckState { Checked = 2, PartiallyChecked = 1, Unchecked = 0 }
  More...
 
enum  ClipOperation { IntersectClip = 2, NoClip = 0, ReplaceClip = 1, UniteClip = 3 }
 
enum  ConnectionType {
  AutoCompatConnection = 3, AutoConnection = 0, BlockingQueuedConnection = 4, DirectConnection = 1,
  QueuedConnection = 2, UniqueConnection = 128
}
  More...
 
enum  ContextMenuPolicy {
  ActionsContextMenu = 2, CustomContextMenu = 3, DefaultContextMenu = 1, NoContextMenu = 0,
  PreventContextMenu = 4
}
  More...
 
enum  CoordinateSystem { DeviceCoordinates = 0, LogicalCoordinates = 1 }
  More...
 
enum  Corner { BottomLeftCorner = 2, BottomRightCorner = 3, TopLeftCorner = 0, TopRightCorner = 1 }
  More...
 
enum  CursorMoveStyle { LogicalMoveStyle = 0, VisualMoveStyle = 1 }
  More...
 
enum  CursorShape {
  ArrowCursor = 0, BitmapCursor = 24, BlankCursor = 10, BusyCursor = 16,
  ClosedHandCursor = 18, CrossCursor = 2, CustomCursor = 25, DragCopyCursor = 19,
  DragLinkCursor = 21, DragMoveCursor = 20, ForbiddenCursor = 14, IBeamCursor = 4,
  LastCursor = 21, OpenHandCursor = 17, PointingHandCursor = 13, SizeAllCursor = 9,
  SizeBDiagCursor = 7, SizeFDiagCursor = 8, SizeHorCursor = 6, SizeVerCursor = 5,
  SplitHCursor = 12, SplitVCursor = 11, UpArrowCursor = 1, WaitCursor = 3,
  WhatsThisCursor = 15
}
  More...
 
enum  DateFormat {
  DefaultLocaleLongDate = 7, DefaultLocaleShortDate = 6, ISODate = 1, LocalDate = 2,
  LocaleDate = 3, SystemLocaleDate = 2, SystemLocaleLongDate = 5, SystemLocaleShortDate = 4,
  TextDate = 0
}
  More...
 
enum  DayOfWeek {
  Friday = 5, Monday = 1, Saturday = 6, Sunday = 7,
  Thursday = 4, Tuesday = 2, Wednesday = 3
}
 
enum  DockWidgetArea {
  AllDockWidgetAreas = 15, BottomDockWidgetArea = 8, DockWidgetArea_Mask = 15, LeftDockWidgetArea = 1,
  NoDockWidgetArea = 0, RightDockWidgetArea = 2, TopDockWidgetArea = 4
}
 
enum  DockWidgetAreaSizes { NDockWidgetAreas = 4 }
 
enum  DropAction {
  ActionMask = 255, CopyAction = 1, IgnoreAction = 0, LinkAction = 4,
  MoveAction = 2, TargetMoveAction = 32770
}
 
enum  EventPriority { HighEventPriority = 1, LowEventPriority = -1, NormalEventPriority = 0 }
  More...
 
enum  FillRule { OddEvenFill = 0, WindingFill = 1 }
  More...
 
enum  FocusPolicy {
  ClickFocus = 2, NoFocus = 0, StrongFocus = 11, TabFocus = 1,
  WheelFocus = 15
}
  More...
 
enum  FocusReason {
  ActiveWindowFocusReason = 3, BacktabFocusReason = 2, MenuBarFocusReason = 6, MouseFocusReason = 0,
  NoFocusReason = 8, OtherFocusReason = 7, PopupFocusReason = 4, ShortcutFocusReason = 5,
  TabFocusReason = 1
}
  More...
 
enum  GestureFlag { DontStartGestureOnChildren = 1, IgnoredGesturesPropagateToParent = 4, ReceivePartialGestures = 2 }
  More...
 
enum  GestureState {
  GestureCanceled = 4, GestureFinished = 3, GestureStarted = 1, GestureUpdated = 2,
  NoGesture = 0
}
  More...
 
enum  GestureType {
  CustomGesture = 256, LastGestureType = -1, PanGesture = 3, PinchGesture = 4,
  SwipeGesture = 5, TapAndHoldGesture = 2, TapGesture = 1
}
  More...
 
enum  GlobalColor {
  black = 2, blue = 9, color0 = 0, color1 = 1,
  cyan = 10, darkBlue = 15, darkCyan = 16, darkGray = 4,
  darkGreen = 14, darkMagenta = 17, darkRed = 13, darkYellow = 18,
  gray = 5, green = 8, lightGray = 6, magenta = 11,
  red = 7, transparent = 19, white = 3, yellow = 12
}
  More...
 
enum  ImageConversionFlag {
  AlphaDither_Mask = 12, AutoColor = 0, AutoDither = 0, AvoidDither = 128,
  ColorMode_Mask = 3, ColorOnly = 3, DiffuseAlphaDither = 8, DiffuseDither = 0,
  DitherMode_Mask = 192, Dither_Mask = 48, MonoOnly = 2, NoAlpha = 12,
  NoFormatConversion = 512, NoOpaqueDetection = 256, OrderedAlphaDither = 4, OrderedDither = 16,
  PreferDither = 64, ThresholdAlphaDither = 0, ThresholdDither = 32
}
  More...
 
enum  Initialization { Uninitialized = 0 }
 
enum  InputMethodHint {
  ImhDialableCharactersOnly = 1048576, ImhDigitsOnly = 65536, ImhEmailCharactersOnly = 2097152, ImhExclusiveInputMask = -65536,
  ImhFormattedNumbersOnly = 131072, ImhHiddenText = 1, ImhLowercaseOnly = 524288, ImhNoAutoUppercase = 2,
  ImhNoPredictiveText = 32, ImhNone = 0, ImhPreferLowercase = 16, ImhPreferNumbers = 4,
  ImhPreferUppercase = 8, ImhUppercaseOnly = 262144, ImhUrlCharactersOnly = 4194304
}
  More...
 
enum  InputMethodQuery {
  ImAnchorPosition = 6, ImCurrentSelection = 4, ImCursorPosition = 2, ImFont = 1,
  ImMaximumTextLength = 5, ImMicroFocus = 0, ImSurroundingText = 3
}
 
enum  ItemDataRole {
  AccessibleDescriptionRole = 12, AccessibleTextRole = 11, BackgroundColorRole = 8, BackgroundRole = 8,
  CheckStateRole = 10, DecorationPropertyRole = 28, DecorationRole = 1, DisplayPropertyRole = 27,
  DisplayRole = 0, EditRole = 2, FontRole = 6, ForegroundRole = 9,
  InitialSortOrderRole = 14, SizeHintRole = 13, StatusTipPropertyRole = 30, StatusTipRole = 4,
  TextAlignmentRole = 7, TextColorRole = 9, ToolTipPropertyRole = 29, ToolTipRole = 3,
  UserRole = 32, WhatsThisPropertyRole = 31, WhatsThisRole = 5
}
  More...
 
enum  ItemFlag {
  ItemIsDragEnabled = 4, ItemIsDropEnabled = 8, ItemIsEditable = 2, ItemIsEnabled = 32,
  ItemIsSelectable = 1, ItemIsTristate = 64, ItemIsUserCheckable = 16, NoItemFlags = 0
}
  More...
 
enum  ItemSelectionMode { ContainsItemBoundingRect = 2, ContainsItemShape = 0, IntersectsItemBoundingRect = 3, IntersectsItemShape = 1 }
  More...
 
enum  Key {
  Key_0 = 48, Key_1 = 49, Key_2 = 50, Key_3 = 51,
  Key_4 = 52, Key_5 = 53, Key_6 = 54, Key_7 = 55,
  Key_8 = 56, Key_9 = 57, Key_A = 65, Key_AE = 198,
  Key_Aacute = 193, Key_Acircumflex = 194, Key_AddFavorite = 16777408, Key_Adiaeresis = 196,
  Key_Agrave = 192, Key_Alt = 16777251, Key_AltGr = 16781571, Key_Ampersand = 38,
  Key_Any = 32, Key_Apostrophe = 39, Key_ApplicationLeft = 16777415, Key_ApplicationRight = 16777416,
  Key_Aring = 197, Key_AsciiCircum = 94, Key_AsciiTilde = 126, Key_Asterisk = 42,
  Key_At = 64, Key_Atilde = 195, Key_AudioCycleTrack = 16777478, Key_AudioForward = 16777474,
  Key_AudioRandomPlay = 16777476, Key_AudioRepeat = 16777475, Key_AudioRewind = 16777413, Key_Away = 16777464,
  Key_B = 66, Key_Back = 16777313, Key_BackForward = 16777414, Key_Backslash = 92,
  Key_Backspace = 16777219, Key_Backtab = 16777218, Key_Bar = 124, Key_BassBoost = 16777331,
  Key_BassDown = 16777333, Key_BassUp = 16777332, Key_Battery = 16777470, Key_Bluetooth = 16777471,
  Key_Book = 16777417, Key_BraceLeft = 123, Key_BraceRight = 125, Key_BracketLeft = 91,
  Key_BracketRight = 93, Key_BrightnessAdjust = 16777410, Key_C = 67, Key_CD = 16777418,
  Key_Calculator = 16777419, Key_Calendar = 16777444, Key_Call = 17825796, Key_Camera = 17825824,
  Key_CameraFocus = 17825825, Key_Cancel = 16908289, Key_CapsLock = 16777252, Key_Ccedilla = 199,
  Key_Clear = 16777227, Key_ClearGrab = 16777421, Key_Close = 16777422, Key_Codeinput = 16781623,
  Key_Colon = 58, Key_Comma = 44, Key_Community = 16777412, Key_Context1 = 17825792,
  Key_Context2 = 17825793, Key_Context3 = 17825794, Key_Context4 = 17825795, Key_ContrastAdjust = 16777485,
  Key_Control = 16777249, Key_Copy = 16777423, Key_Cut = 16777424, Key_D = 68,
  Key_DOS = 16777426, Key_Dead_Abovedot = 16781910, Key_Dead_Abovering = 16781912, Key_Dead_Acute = 16781905,
  Key_Dead_Belowdot = 16781920, Key_Dead_Breve = 16781909, Key_Dead_Caron = 16781914, Key_Dead_Cedilla = 16781915,
  Key_Dead_Circumflex = 16781906, Key_Dead_Diaeresis = 16781911, Key_Dead_Doubleacute = 16781913, Key_Dead_Grave = 16781904,
  Key_Dead_Hook = 16781921, Key_Dead_Horn = 16781922, Key_Dead_Iota = 16781917, Key_Dead_Macron = 16781908,
  Key_Dead_Ogonek = 16781916, Key_Dead_Semivoiced_Sound = 16781919, Key_Dead_Tilde = 16781907, Key_Dead_Voiced_Sound = 16781918,
  Key_Delete = 16777223, Key_Direction_L = 16777305, Key_Direction_R = 16777312, Key_Display = 16777425,
  Key_Documents = 16777427, Key_Dollar = 36, Key_Down = 16777237, Key_E = 69,
  Key_ETH = 208, Key_Eacute = 201, Key_Ecircumflex = 202, Key_Ediaeresis = 203,
  Key_Egrave = 200, Key_Eisu_Shift = 16781615, Key_Eisu_toggle = 16781616, Key_Eject = 16777401,
  Key_End = 16777233, Key_Enter = 16777221, Key_Equal = 61, Key_Escape = 16777216,
  Key_Excel = 16777428, Key_Exclam = 33, Key_Execute = 16908291, Key_Explorer = 16777429,
  Key_F = 70, Key_F1 = 16777264, Key_F10 = 16777273, Key_F11 = 16777274,
  Key_F12 = 16777275, Key_F13 = 16777276, Key_F14 = 16777277, Key_F15 = 16777278,
  Key_F16 = 16777279, Key_F17 = 16777280, Key_F18 = 16777281, Key_F19 = 16777282,
  Key_F2 = 16777265, Key_F20 = 16777283, Key_F21 = 16777284, Key_F22 = 16777285,
  Key_F23 = 16777286, Key_F24 = 16777287, Key_F25 = 16777288, Key_F26 = 16777289,
  Key_F27 = 16777290, Key_F28 = 16777291, Key_F29 = 16777292, Key_F3 = 16777266,
  Key_F30 = 16777293, Key_F31 = 16777294, Key_F32 = 16777295, Key_F33 = 16777296,
  Key_F34 = 16777297, Key_F35 = 16777298, Key_F4 = 16777267, Key_F5 = 16777268,
  Key_F6 = 16777269, Key_F7 = 16777270, Key_F8 = 16777271, Key_F9 = 16777272,
  Key_Favorites = 16777361, Key_Finance = 16777411, Key_Flip = 17825798, Key_Forward = 16777314,
  Key_G = 71, Key_Game = 16777430, Key_Go = 16777431, Key_Greater = 62,
  Key_H = 72, Key_Hangul = 16781617, Key_Hangul_Banja = 16781625, Key_Hangul_End = 16781619,
  Key_Hangul_Hanja = 16781620, Key_Hangul_Jamo = 16781621, Key_Hangul_Jeonja = 16781624, Key_Hangul_PostHanja = 16781627,
  Key_Hangul_PreHanja = 16781626, Key_Hangul_Romaja = 16781622, Key_Hangul_Special = 16781631, Key_Hangul_Start = 16781618,
  Key_Hangup = 17825797, Key_Hankaku = 16781609, Key_Help = 16777304, Key_Henkan = 16781603,
  Key_Hibernate = 16777480, Key_Hiragana = 16781605, Key_Hiragana_Katakana = 16781607, Key_History = 16777407,
  Key_Home = 16777232, Key_HomePage = 16777360, Key_HotLinks = 16777409, Key_Hyper_L = 16777302,
  Key_Hyper_R = 16777303, Key_I = 73, Key_Iacute = 205, Key_Icircumflex = 206,
  Key_Idiaeresis = 207, Key_Igrave = 204, Key_Insert = 16777222, Key_J = 74,
  Key_K = 75, Key_Kana_Lock = 16781613, Key_Kana_Shift = 16781614, Key_Kanji = 16781601,
  Key_Katakana = 16781606, Key_KeyboardBrightnessDown = 16777398, Key_KeyboardBrightnessUp = 16777397, Key_KeyboardLightOnOff = 16777396,
  Key_L = 76, Key_LastNumberRedial = 17825801, Key_Launch0 = 16777378, Key_Launch1 = 16777379,
  Key_Launch2 = 16777380, Key_Launch3 = 16777381, Key_Launch4 = 16777382, Key_Launch5 = 16777383,
  Key_Launch6 = 16777384, Key_Launch7 = 16777385, Key_Launch8 = 16777386, Key_Launch9 = 16777387,
  Key_LaunchA = 16777388, Key_LaunchB = 16777389, Key_LaunchC = 16777390, Key_LaunchD = 16777391,
  Key_LaunchE = 16777392, Key_LaunchF = 16777393, Key_LaunchG = 16777486, Key_LaunchH = 16777487,
  Key_LaunchMail = 16777376, Key_LaunchMedia = 16777377, Key_Left = 16777234, Key_Less = 60,
  Key_LightBulb = 16777405, Key_LogOff = 16777433, Key_M = 77, Key_MailForward = 16777467,
  Key_Market = 16777434, Key_Massyo = 16781612, Key_MediaLast = 16842751, Key_MediaNext = 16777347,
  Key_MediaPause = 16777349, Key_MediaPlay = 16777344, Key_MediaPrevious = 16777346, Key_MediaRecord = 16777348,
  Key_MediaStop = 16777345, Key_MediaTogglePlayPause = 16777350, Key_Meeting = 16777435, Key_Memo = 16777404,
  Key_Menu = 16777301, Key_MenuKB = 16777436, Key_MenuPB = 16777437, Key_Messenger = 16777465,
  Key_Meta = 16777250, Key_Minus = 45, Key_Mode_switch = 16781694, Key_MonBrightnessDown = 16777395,
  Key_MonBrightnessUp = 16777394, Key_Muhenkan = 16781602, Key_Multi_key = 16781600, Key_MultipleCandidate = 16781629,
  Key_Music = 16777469, Key_MySites = 16777438, Key_N = 78, Key_News = 16777439,
  Key_No = 16842754, Key_Ntilde = 209, Key_NumLock = 16777253, Key_NumberSign = 35,
  Key_O = 79, Key_Oacute = 211, Key_Ocircumflex = 212, Key_Odiaeresis = 214,
  Key_OfficeHome = 16777440, Key_Ograve = 210, Key_Ooblique = 216, Key_OpenUrl = 16777364,
  Key_Option = 16777441, Key_Otilde = 213, Key_P = 80, Key_PageDown = 16777239,
  Key_PageUp = 16777238, Key_ParenLeft = 40, Key_ParenRight = 41, Key_Paste = 16777442,
  Key_Pause = 16777224, Key_Percent = 37, Key_Period = 46, Key_Phone = 16777443,
  Key_Pictures = 16777468, Key_Play = 16908293, Key_Plus = 43, Key_PowerDown = 16777483,
  Key_PowerOff = 16777399, Key_PreviousCandidate = 16781630, Key_Print = 16777225, Key_Printer = 16908290,
  Key_Q = 81, Key_Question = 63, Key_QuoteDbl = 34, Key_QuoteLeft = 96,
  Key_R = 82, Key_Refresh = 16777316, Key_Reload = 16777446, Key_Reply = 16777445,
  Key_Return = 16777220, Key_Right = 16777236, Key_Romaji = 16781604, Key_RotateWindows = 16777447,
  Key_RotationKB = 16777449, Key_RotationPB = 16777448, Key_S = 83, Key_Save = 16777450,
  Key_ScreenSaver = 16777402, Key_ScrollLock = 16777254, Key_Search = 16777362, Key_Select = 16842752,
  Key_Semicolon = 59, Key_Send = 16777451, Key_Shift = 16777248, Key_Shop = 16777406,
  Key_SingleCandidate = 16781628, Key_Slash = 47, Key_Sleep = 16908292, Key_Space = 32,
  Key_Spell = 16777452, Key_SplitScreen = 16777453, Key_Standby = 16777363, Key_Stop = 16777315,
  Key_Subtitle = 16777477, Key_Super_L = 16777299, Key_Super_R = 16777300, Key_Support = 16777454,
  Key_Suspend = 16777484, Key_SysReq = 16777226, Key_T = 84, Key_THORN = 222,
  Key_Tab = 16777217, Key_TaskPane = 16777455, Key_Terminal = 16777456, Key_Time = 16777479,
  Key_ToDoList = 16777420, Key_ToggleCallHangup = 17825799, Key_Tools = 16777457, Key_TopMenu = 16777482,
  Key_Touroku = 16781611, Key_Travel = 16777458, Key_TrebleDown = 16777335, Key_TrebleUp = 16777334,
  Key_U = 85, Key_UWB = 16777473, Key_Uacute = 218, Key_Ucircumflex = 219,
  Key_Udiaeresis = 220, Key_Ugrave = 217, Key_Underscore = 95, Key_Up = 16777235,
  Key_V = 86, Key_Video = 16777459, Key_View = 16777481, Key_VoiceDial = 17825800,
  Key_VolumeDown = 16777328, Key_VolumeMute = 16777329, Key_VolumeUp = 16777330, Key_W = 87,
  Key_WLAN = 16777472, Key_WWW = 16777403, Key_WakeUp = 16777400, Key_WebCam = 16777466,
  Key_Word = 16777460, Key_X = 88, Key_Xfer = 16777461, Key_Y = 89,
  Key_Yacute = 221, Key_Yes = 16842753, Key_Z = 90, Key_Zenkaku = 16781608,
  Key_Zenkaku_Hankaku = 16781610, Key_Zoom = 16908294, Key_ZoomIn = 16777462, Key_ZoomOut = 16777463,
  Key_acute = 180, Key_brokenbar = 166, Key_cedilla = 184, Key_cent = 162,
  Key_copyright = 169, Key_currency = 164, Key_degree = 176, Key_diaeresis = 168,
  Key_division = 247, Key_exclamdown = 161, Key_guillemotleft = 171, Key_guillemotright = 187,
  Key_hyphen = 173, Key_iTouch = 16777432, Key_macron = 175, Key_masculine = 186,
  Key_mu = 181, Key_multiply = 215, Key_nobreakspace = 160, Key_notsign = 172,
  Key_onehalf = 189, Key_onequarter = 188, Key_onesuperior = 185, Key_ordfeminine = 170,
  Key_paragraph = 182, Key_periodcentered = 183, Key_plusminus = 177, Key_questiondown = 191,
  Key_registered = 174, Key_section = 167, Key_ssharp = 223, Key_sterling = 163,
  Key_threequarters = 190, Key_threesuperior = 179, Key_twosuperior = 178, Key_unknown = 33554431,
  Key_ydiaeresis = 255, Key_yen = 165
}
  More...
 
enum  KeyboardModifier {
  AltModifier = 134217728, ControlModifier = 67108864, GroupSwitchModifier = 1073741824, KeyboardModifierMask = -33554432,
  KeypadModifier = 536870912, MetaModifier = 268435456, NoModifier = 0, ShiftModifier = 33554432
}
  More...
 
enum  LayoutDirection { LayoutDirectionAuto = 2, LeftToRight = 0, RightToLeft = 1 }
  More...
 
enum  MaskMode { MaskInColor = 0, MaskOutColor = 1 }
  More...
 
enum  MatchFlag {
  MatchCaseSensitive = 16, MatchContains = 1, MatchEndsWith = 3, MatchExactly = 0,
  MatchFixedString = 8, MatchRecursive = 64, MatchRegExp = 4, MatchStartsWith = 2,
  MatchWildcard = 5, MatchWrap = 32
}
  More...
 
enum  Modifier {
  ALT = 134217728, CTRL = 67108864, META = 268435456, MODIFIER_MASK = -33554432,
  SHIFT = 33554432, UNICODE_ACCEL = 0
}
  More...
 
enum  MouseButton {
  LeftButton = 1, MidButton = 4, MiddleButton = 4, MouseButtonMask = 255,
  NoButton = 0, RightButton = 2, XButton1 = 8, XButton2 = 16
}
  More...
 
enum  NavigationMode {
  NavigationModeCursorAuto = 3, NavigationModeCursorForceVisible = 4, NavigationModeKeypadDirectional = 2, NavigationModeKeypadTabOrder = 1,
  NavigationModeNone = 0
}
  More...
 
enum  Orientation { Horizontal = 1, Vertical = 2 }
  More...
 
enum  PenCapStyle { FlatCap = 0, MPenCapStyle = 48, RoundCap = 32, SquareCap = 16 }
  More...
 
enum  PenJoinStyle {
  BevelJoin = 64, MPenJoinStyle = 448, MiterJoin = 0, RoundJoin = 128,
  SvgMiterJoin = 256
}
  More...
 
enum  PenStyle {
  CustomDashLine = 6, DashDotDotLine = 5, DashDotLine = 4, DashLine = 2,
  DotLine = 3, MPenStyle = 15, NoPen = 0, SolidLine = 1
}
  More...
 
enum  ScrollBarPolicy { ScrollBarAlwaysOff = 1, ScrollBarAlwaysOn = 2, ScrollBarAsNeeded = 0 }
  More...
 
enum  ShortcutContext { ApplicationShortcut = 2, WidgetShortcut = 0, WidgetWithChildrenShortcut = 3, WindowShortcut = 1 }
  More...
 
enum  SizeHint {
  MaximumSize = 2, MinimumDescent = 3, MinimumSize = 0, NSizeHints = 4,
  PreferredSize = 1
}
  More...
 
enum  SizeMode { AbsoluteSize = 0, RelativeSize = 1 }
  More...
 
enum  SortOrder { AscendingOrder = 0, DescendingOrder = 1 }
  More...
 
enum  TextElideMode { ElideLeft = 0, ElideMiddle = 2, ElideNone = 3, ElideRight = 1 }
  More...
 
enum  TextFlag {
  TextBypassShaping = 1048576, TextDontClip = 512, TextDontPrint = 16384, TextExpandTabs = 1024,
  TextForceLeftToRight = 131072, TextForceRightToLeft = 262144, TextHideMnemonic = 32768, TextIncludeTrailingSpaces = 134217728,
  TextJustificationForced = 65536, TextLongestVariant = 524288, TextShowMnemonic = 2048, TextSingleLine = 256,
  TextWordWrap = 4096, TextWrapAnywhere = 8192
}
  More...
 
enum  TextFormat { AutoText = 2, LogText = 3, PlainText = 0, RichText = 1 }
  More...
 
enum  TextInteractionFlag {
  LinksAccessibleByKeyboard = 8, LinksAccessibleByMouse = 4, NoTextInteraction = 0, TextBrowserInteraction = 13,
  TextEditable = 16, TextEditorInteraction = 19, TextSelectableByKeyboard = 2, TextSelectableByMouse = 1
}
  More...
 
enum  TileRule { RepeatTile = 1, RoundTile = 2, StretchTile = 0 }
  More...
 
enum  TimeSpec { LocalTime = 0, OffsetFromUTC = 2, UTC = 1 }
 
enum  ToolBarArea {
  AllToolBarAreas = 15, BottomToolBarArea = 8, LeftToolBarArea = 1, NoToolBarArea = 0,
  RightToolBarArea = 2, ToolBarArea_Mask = 15, TopToolBarArea = 4
}
 
enum  ToolBarAreaSizes { NToolBarAreas = 4 }
 
enum  ToolButtonStyle {
  ToolButtonFollowStyle = 4, ToolButtonIconOnly = 0, ToolButtonTextBesideIcon = 2, ToolButtonTextOnly = 1,
  ToolButtonTextUnderIcon = 3
}
  More...
 
enum  TouchPointState {
  TouchPointMoved = 2, TouchPointPressed = 1, TouchPointPrimary = 16, TouchPointReleased = 8,
  TouchPointStateMask = 15, TouchPointStationary = 4
}
  More...
 
enum  TransformationMode { FastTransformation = 0, SmoothTransformation = 1 }
  More...
 
enum  UIEffect {
  UI_AnimateCombo = 3, UI_AnimateMenu = 1, UI_AnimateToolBox = 6, UI_AnimateTooltip = 4,
  UI_FadeMenu = 2, UI_FadeTooltip = 5, UI_General = 0
}
  More...
 
enum  WidgetAttribute {
  WA_AcceptDrops = 78, WA_AcceptTouchEvents = 121, WA_AlwaysShowToolTips = 84, WA_AttributeCount = 135,
  WA_AutoOrientation = 130, WA_CanHostQMdiSubWindowTitleBar = 95, WA_ContentsPropagated = 3, WA_CustomWhatsThis = 47,
  WA_DeleteOnClose = 55, WA_Disabled = 0, WA_DontCreateNativeAncestors = 101, WA_DontShowOnScreen = 103,
  WA_DropSiteRegistered = 79, WA_ForceAcceptDrops = 79, WA_ForceDisabled = 32, WA_ForceUpdatesDisabled = 59,
  WA_GrabbedShortcut = 50, WA_GroupLeader = 72, WA_Hover = 74, WA_InputMethodEnabled = 14,
  WA_InputMethodTransparent = 75, WA_InvalidSize = 45, WA_KeyCompression = 33, WA_KeyboardFocusChange = 77,
  WA_LaidOut = 7, WA_LayoutOnEntireRect = 48, WA_LayoutUsesWidgetRect = 92, WA_LockLandscapeOrientation = 129,
  WA_LockPortraitOrientation = 128, WA_MSWindowsUseDirect3D = 94, WA_MacAlwaysShowToolWindow = 96, WA_MacBrushedMetal = 46,
  WA_MacFrameworkScaled = 117, WA_MacMetalStyle = 46, WA_MacMiniSize = 91, WA_MacNoClickThrough = 12,
  WA_MacNoShadow = 134, WA_MacNormalSize = 89, WA_MacOpaqueSizeGrip = 85, WA_MacShowFocusRect = 88,
  WA_MacSmallSize = 90, WA_MacVariableSize = 102, WA_Mapped = 11, WA_MergeSoftkeys = 124,
  WA_MergeSoftkeysRecursively = 125, WA_MouseNoMask = 71, WA_MouseTracking = 2, WA_Moved = 43,
  WA_NativeWindow = 100, WA_NoBackground = 4, WA_NoChildEventsForParent = 58, WA_NoChildEventsFromChildren = 39,
  WA_NoMousePropagation = 73, WA_NoMouseReplay = 54, WA_NoSystemBackground = 9, WA_NoX11EventCompression = 81,
  WA_OpaquePaintEvent = 4, WA_OutsideWSRange = 49, WA_PaintOnScreen = 8, WA_PaintOutsidePaintEvent = 13,
  WA_PaintUnclipped = 52, WA_PendingMoveEvent = 34, WA_PendingResizeEvent = 35, WA_PendingUpdate = 44,
  WA_QuitOnClose = 76, WA_Resized = 42, WA_RightToLeft = 56, WA_SetCursor = 38,
  WA_SetFont = 37, WA_SetLayoutDirection = 57, WA_SetLocale = 87, WA_SetPalette = 36,
  WA_SetStyle = 86, WA_SetWindowIcon = 53, WA_SetWindowModality = 118, WA_ShowModal = 70,
  WA_ShowWithoutActivating = 98, WA_StaticContents = 5, WA_StyleSheet = 97, WA_StyledBackground = 93,
  WA_SymbianNoSystemRotation = 133, WA_TintedBackground = 82, WA_TouchPadAcceptSingleTouchEvents = 123, WA_TranslucentBackground = 120,
  WA_TransparentForMouseEvents = 51, WA_UnderMouse = 1, WA_UpdatesDisabled = 10, WA_WState_AcceptedTouchBeginEvent = 122,
  WA_WState_CompressKeys = 61, WA_WState_ConfigPending = 64, WA_WState_Created = 60, WA_WState_DND = 67,
  WA_WState_ExplicitShowHide = 69, WA_WState_Hidden = 16, WA_WState_InPaintEvent = 62, WA_WState_OwnSizePolicy = 68,
  WA_WState_Polished = 66, WA_WState_Reparented = 63, WA_WState_Visible = 15, WA_WState_WindowOpacitySet = 119,
  WA_WindowModified = 41, WA_WindowPropagation = 80, WA_X11BypassTransientForHint = 99, WA_X11DoNotAcceptFocus = 132,
  WA_X11NetWmWindowTypeCombo = 115, WA_X11NetWmWindowTypeDND = 116, WA_X11NetWmWindowTypeDesktop = 104, WA_X11NetWmWindowTypeDialog = 110,
  WA_X11NetWmWindowTypeDock = 105, WA_X11NetWmWindowTypeDropDownMenu = 111, WA_X11NetWmWindowTypeMenu = 107, WA_X11NetWmWindowTypeNotification = 114,
  WA_X11NetWmWindowTypePopupMenu = 112, WA_X11NetWmWindowTypeSplash = 109, WA_X11NetWmWindowTypeToolBar = 106, WA_X11NetWmWindowTypeToolTip = 113,
  WA_X11NetWmWindowTypeUtility = 108, WA_X11OpenGLOverlay = 83
}
  More...
 
enum  WindowFrameSection {
  BottomLeftSection = 8, BottomRightSection = 6, BottomSection = 7, LeftSection = 1,
  NoSection = 0, RightSection = 5, TitleBarArea = 9, TopLeftSection = 2,
  TopRightSection = 4, TopSection = 3
}
  More...
 
enum  WindowModality { ApplicationModal = 2, NonModal = 0, WindowModal = 1 }
  More...
 
enum  WindowState {
  WindowActive = 8, WindowFullScreen = 4, WindowMaximized = 2, WindowMinimized = 1,
  WindowNoState = 0
}
  More...
 
enum  WindowType {
  BypassGraphicsProxyWidget = 536870912, CustomizeWindowHint = 33554432, Desktop = 17, Dialog = 3,
  Drawer = 7, FramelessWindowHint = 2048, MSWindowsFixedSizeDialogHint = 256, MSWindowsOwnDC = 512,
  MacWindowToolBarButtonHint = 268435456, Popup = 9, Sheet = 5, SplashScreen = 15,
  SubWindow = 18, Tool = 11, ToolTip = 13, Widget = 0,
  Window = 1, WindowCancelButtonHint = 1048576, WindowCloseButtonHint = 134217728, WindowContextHelpButtonHint = 65536,
  WindowMaximizeButtonHint = 32768, WindowMinMaxButtonsHint = 49152, WindowMinimizeButtonHint = 16384, WindowOkButtonHint = 524288,
  WindowShadeButtonHint = 131072, WindowSoftkeysRespondHint = -2147483648, WindowSoftkeysVisibleHint = 1073741824, WindowStaysOnBottomHint = 67108864,
  WindowStaysOnTopHint = 262144, WindowSystemMenuHint = 8192, WindowTitleHint = 4096, WindowType_Mask = 255,
  X11BypassWindowManagerHint = 1024
}
  More...
 
- Static Public Attributes inherited from QtCore.Qt
</para > *< para > Creating QM
files suitable for use with
this[SmokeMethod("qtTrId(const
char*, int)")] static strin 
QtTrId )(string id, int n=-1)
 
- Protected Attributes inherited from QtCore.QObject
object Q_EMIT = null
 
SmokeInvocation interceptor
 
readonly List< QEventHandler > eventFilters = new List<QEventHandler>()
 

Detailed Description

The QGraphicsObject class provides a base class for all graphics items that require signals, slots and properties.

The class extends a QGraphicsItem with QObject's signal/slot and property mechanisms. It maps many of QGraphicsItem's basic setters and getters to properties and adds notification signals for many of them.

Parents and Children

Each graphics object can be constructed with a parent item. This ensures that the item will be destroyed when its parent item is destroyed. Although QGraphicsObject inherits from both QObject and QGraphicsItem, you should use the functions provided by QGraphicsItem, not QObject, to manage the relationships between parent and child items.

The relationships between items can be explored using the parentItem() and childItems() functions. In the hierarchy of items in a scene, the parentObject() and parentWidget() functions are the equivalent of the QWidget::parent() and QWidget::parentWidget() functions for QWidget subclasses.

See also QGraphicsWidget.

Constructor & Destructor Documentation

QtGui.QGraphicsObject.QGraphicsObject ( System.Type  dummy)
protected
QtGui.QGraphicsObject.QGraphicsObject ( IQGraphicsItem  parent = null)

Constructs a QGraphicsObject with parent.

Here is the call graph for this function:

Member Function Documentation

new void QtGui.QGraphicsObject.AddToIndex ( )
protected
virtual void QtGui.QGraphicsObject.Advance ( int  phase)
virtual

This virtual function is called twice for all items by the QGraphicsScene::advance() slot. In the first phase, all items are called with phase == 0, indicating that items on the scene are about to advance, and then all items are called with phase == 1. Reimplement this function to update your item if you need simple scene-controlled animation.

The default implementation does nothing.

For individual item animation, an alternative to this function is to either use QGraphicsItemAnimation, or to multiple-inherit from QObject and QGraphicsItem, and animate your item using QObject::startTimer() and QObject::timerEvent().

See also QGraphicsItemAnimation and QTimeLine.

Implements QtGui.IQGraphicsItem.

new QRegion QtGui.QGraphicsObject.BoundingRegion ( QTransform  itemToDeviceTransform)

Returns the bounding region for this item. The coordinate space of the returned region depends on itemToDeviceTransform. If you pass an identity QTransform as a parameter, this function will return a local coordinate region.

The bounding region describes a coarse outline of the item's visual contents. Although it's expensive to calculate, it's also more precise than boundingRect(), and it can help to avoid unnecessary repainting when an item is updated. This is particularly efficient for thin items (e.g., lines or simple polygons). You can tune the granularity for the bounding region by calling setBoundingRegionGranularity(). The default granularity is 0; in which the item's bounding region is the same as its bounding rect.

itemToDeviceTransform is the transformation from item coordinates to device coordinates. If you want this function to return a QRegion in scene coordinates, you can pass sceneTransform() as an argument.

This function was introduced in Qt 4.4.

See also boundingRegionGranularity().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.ClearFocus ( )

Takes keyboard input focus from the item.

If it has focus, a focus out event is sent to this item to tell it that it is about to lose the focus.

Only items that set the ItemIsFocusable flag, or widgets that set an appropriate focus policy, can accept keyboard focus.

See also setFocus(), hasFocus(), and QGraphicsWidget::focusPolicy.

Implements QtGui.IQGraphicsItem.

virtual bool QtGui.QGraphicsObject.CollidesWithItem ( IQGraphicsItem  other,
Qt.ItemSelectionMode  mode = Qt.ItemSelectionMode.IntersectsItemShape 
)
virtual

Returns true if this item collides with other; otherwise returns false.

The mode is applied to other, and the resulting shape or bounding rectangle is then compared to this item's shape. The default value for mode is Qt::IntersectsItemShape; other collides with this item if it either intersects, contains, or is contained by this item's shape (see Qt::ItemSelectionMode for details).

The default implementation is based on shape intersection, and it calls shape() on both items. Because the complexity of arbitrary shape-shape intersection grows with an order of magnitude when the shapes are complex, this operation can be noticably time consuming. You have the option of reimplementing this function in a subclass of QGraphicsItem to provide a custom algorithm. This allows you to make use of natural constraints in the shapes of your own items, in order to improve the performance of the collision detection. For instance, two untransformed perfectly circular items' collision can be determined very efficiently by comparing their positions and radii.

Keep in mind that when reimplementing this function and calling shape() or boundingRect() on other, the returned coordinates must be mapped to this item's coordinate system before any intersection can take place.

See also contains() and shape().

virtual bool QtGui.QGraphicsObject.CollidesWithPath ( QPainterPath  path,
Qt.ItemSelectionMode  mode = Qt.ItemSelectionMode.IntersectsItemShape 
)
virtual

Returns true if this item collides with path.

The collision is determined by mode. The default value for mode is Qt::IntersectsItemShape; path collides with this item if it either intersects, contains, or is contained by this item's shape.

Note that this function checks whether the item's shape or bounding rectangle (depending on mode) is contained within path, and not whether path is contained within the items shape or bounding rectangle.

See also collidesWithItem(), contains(), and shape().

new System.Collections.Generic.List<IQGraphicsItem> QtGui.QGraphicsObject.CollidingItems ( Qt.ItemSelectionMode  mode = Qt.ItemSelectionMode.IntersectsItemShape)

Returns a list of all items that collide with this item.

The way collisions are detected is determined by applying mode to items that are compared to this item, i.e., each item's shape or bounding rectangle is checked against this item's shape. The default value for mode is Qt::IntersectsItemShape.

See also collidesWithItem().

new IQGraphicsItem QtGui.QGraphicsObject.CommonAncestorItem ( IQGraphicsItem  other)

Returns the closest common ancestor item of this item and other, or 0 if either other is 0, or there is no common ancestor.

This function was introduced in Qt 4.4.

See also isAncestorOf().

Implements QtGui.IQGraphicsItem.

virtual bool QtGui.QGraphicsObject.Contains ( QPointF  point)
virtual

Returns true if this item contains point, which is in local coordinates; otherwise, false is returned. It is most often called from QGraphicsView to determine what item is under the cursor, and for that reason, the implementation of this function should be as light-weight as possible.

By default, this function calls shape(), but you can reimplement it in a subclass to provide a (perhaps more efficient) implementation.

See also shape(), boundingRect(), and collidesWithPath().

Implements QtGui.IQGraphicsItem.

Reimplemented in QtGui.QGraphicsTextItem.

override void QtGui.QGraphicsObject.CreateProxy ( )
virtual

Reimplemented from QtCore.QObject.

Reimplemented in QtGui.QGraphicsWidget, QtGui.QGraphicsTextItem, QtGui.QGraphicsProxyWidget, and QtSvg.QGraphicsSvgItem.

Here is the caller graph for this function:

new object QtGui.QGraphicsObject.Data ( int  key)

Returns this item's custom data for the key key as a QVariant.

Custom item data is useful for storing arbitrary properties in any item. Example:

static const int ObjectName = 0;

QGraphicsItem *item = scene.itemAt(100, 50);

if (item->data(ObjectName).toString().isEmpty()) {

if (qgraphicsitem_cast<ButtonItem *>(item))

item->setData(ObjectName, "Button");

}

Qt does not use this feature for storing data; it is provided solely for the convenience of the user.

See also setData().

Implements QtGui.IQGraphicsItem.

new QTransform QtGui.QGraphicsObject.DeviceTransform ( QTransform  viewportTransform)

Returns this item's device transformation matrix, using viewportTransform to map from scene to device coordinates. This matrix can be used to map coordinates and geometrical shapes from this item's local coordinate system to the viewport's (or any device's) coordinate system. To map coordinates from the viewport, you must first invert the returned matrix.

Example:

QGraphicsRectItem rect;

rect.setPos(100, 100);

rect.deviceTransform(view->viewportTransform()).map(QPointF(0, 0));

// returns the item's (0, 0) point in view's viewport coordinates

rect.deviceTransform(view->viewportTransform()).inverted().map(QPointF(100, 100));

// returns view's viewport's (100, 100) coordinate in item coordinates

This function is the same as combining this item's scene transform with the view's viewport transform, but it also understands the ItemIgnoresTransformations flag. The device transform can be used to do accurate coordinate mapping (and collision detection) for untransformable items.

This function was introduced in Qt 4.3.

See also transform(), setTransform(), scenePos(), The Graphics View Coordinate System, and itemTransform().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.Dispose ( )
new void QtGui.QGraphicsObject.EnsureVisible ( )

If this item is part of a scene that is viewed by a QGraphicsView, this convenience function will attempt to scroll the view to ensure that rect is visible inside the view's viewport. If rect is a null rect (the default), QGraphicsItem will default to the item's bounding rect. xmargin and ymargin are the number of pixels the view should use for margins.

If the specified rect cannot be reached, the contents are scrolled to the nearest valid position.

If this item is not viewed by a QGraphicsView, this function does nothing.

See also QGraphicsView::ensureVisible().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.EnsureVisible ( QRectF  rect,
int  xmargin = 50,
int  ymargin = 50 
)

If this item is part of a scene that is viewed by a QGraphicsView, this convenience function will attempt to scroll the view to ensure that rect is visible inside the view's viewport. If rect is a null rect (the default), QGraphicsItem will default to the item's bounding rect. xmargin and ymargin are the number of pixels the view should use for margins.

If the specified rect cannot be reached, the contents are scrolled to the nearest valid position.

If this item is not viewed by a QGraphicsView, this function does nothing.

See also QGraphicsView::ensureVisible().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.EnsureVisible ( double  x,
double  y,
double  w,
double  h,
int  xmargin = 50,
int  ymargin = 50 
)

This convenience function is equivalent to calling ensureVisible(QRectF(x, y, w, h), xmargin, ymargin):

Implements QtGui.IQGraphicsItem.

virtual object QtGui.QGraphicsObject.extension ( object  variant)
protectedvirtual

Reimplemented in QtGui.QGraphicsTextItem.

Here is the caller graph for this function:

new IQGraphicsItem QtGui.QGraphicsObject.FocusItem ( )

If this item, a child or descendant of this item currently has input focus, this function will return a pointer to that item. If no descendant has input focus, 0 is returned.

This function was introduced in Qt 4.6.

See also hasFocus(), setFocus(), and QWidget::focusWidget().

Implements QtGui.IQGraphicsItem.

new IQGraphicsItem QtGui.QGraphicsObject.FocusScopeItem ( )

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.GrabGesture ( Qt.GestureType  type,
Qt.GestureFlag  flags = 0 
)

Subscribes the graphics object to the given gesture with specific flags.

See also ungrabGesture() and QGestureEvent.

new void QtGui.QGraphicsObject.GrabKeyboard ( )

Grabs the keyboard input.

The item will receive all keyboard input to the scene until one of the following events occur:

The item becomes invisible

The item is removed from the scene

The item is deleted

The item calls ungrabKeyboard()

Another item calls grabKeyboard(); the item will regain the keyboard grab when the other item calls ungrabKeyboard().

When an item gains the keyboard grab, it receives a QEvent::GrabKeyboard event. When it loses the keyboard grab, it receives a QEvent::UngrabKeyboard event. These events can be used to detect when your item gains or loses the keyboard grab through other means than gaining input focus.

It is almost never necessary to explicitly grab the keyboard in Qt, as Qt grabs and releases it sensibly. In particular, Qt grabs the keyboard when your item gains input focus, and releases it when your item loses input focus, or when the item is hidden.

Note that only visible items can grab keyboard input. Calling grabKeyboard() on an invisible item has no effect.

Keyboard events are not affected.

This function was introduced in Qt 4.4.

See also ungrabKeyboard(), grabMouse(), and setFocus().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.GrabMouse ( )

Grabs the mouse input.

This item will receive all mouse events for the scene until any of the following events occurs:

The item becomes invisible

The item is removed from the scene

The item is deleted

The item call ungrabMouse()

Another item calls grabMouse(); the item will regain the mouse grab when the other item calls ungrabMouse().

When an item gains the mouse grab, it receives a QEvent::GrabMouse event. When it loses the mouse grab, it receives a QEvent::UngrabMouse event. These events can be used to detect when your item gains or loses the mouse grab through other means than receiving mouse button events.

It is almost never necessary to explicitly grab the mouse in Qt, as Qt grabs and releases it sensibly. In particular, Qt grabs the mouse when you press a mouse button, and keeps the mouse grabbed until you release the last mouse button. Also, Qt::Popup widgets implicitly call grabMouse() when shown, and ungrabMouse() when hidden.

Note that only visible items can grab mouse input. Calling grabMouse() on an invisible item has no effect.

Keyboard events are not affected.

This function was introduced in Qt 4.4.

See also QGraphicsScene::mouseGrabberItem(), ungrabMouse(), and grabKeyboard().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.Hide ( )

Hides the item. (Items are visible by default.)

This convenience function is equivalent to calling setVisible(false).

See also show() and setVisible().

Implements QtGui.IQGraphicsItem.

virtual object QtGui.QGraphicsObject.InputMethodQuery ( Qt.InputMethodQuery  query)
protectedvirtual

Reimplemented in QtGui.QGraphicsTextItem.

new void QtGui.QGraphicsObject.InstallSceneEventFilter ( IQGraphicsItem  filterItem)

Installs an event filter for this item on filterItem, causing all events for this item to first pass through filterItem's sceneEventFilter() function.

To filter another item's events, install this item as an event filter for the other item. Example:

QGraphicsScene scene;

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

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

line->installSceneEventFilter(ellipse);

// line's events are filtered by ellipse's sceneEventFilter() function.

ellipse->installSceneEventFilter(line);

// ellipse's events are filtered by line's sceneEventFilter() function.

An item can only filter events for other items in the same scene. Also, an item cannot filter its own events; instead, you can reimplement sceneEvent() directly.

Items must belong to a scene for scene event filters to be installed and used.

See also removeSceneEventFilter(), sceneEventFilter(), and sceneEvent().

Implements QtGui.IQGraphicsItem.

new bool QtGui.QGraphicsObject.IsAncestorOf ( IQGraphicsItem  child)

Returns true if this item is an ancestor of child (i.e., if this item is child's parent, or one of child's parent's ancestors).

See also parentItem().

Implements QtGui.IQGraphicsItem.

new bool QtGui.QGraphicsObject.IsBlockedByModalPanel ( IQGraphicsItem  blockingPanel = null)

Returns true if this item is blocked by a modal panel, false otherwise. If blockingPanel is non-zero, blockingPanel will be set to the modal panel that is blocking this item. If this item is not blocked, blockingPanel will not be set by this function.

This function always returns false for items not in a scene.

This function was introduced in Qt 4.6.

See also panelModality(), setPanelModality(), and PanelModality.

Implements QtGui.IQGraphicsItem.

new bool QtGui.QGraphicsObject.IsObscured ( )

Returns true if this item's bounding rect is completely obscured by the opaque shape of any of colliding items above it (i.e., with a higher Z value than this item).

Its implementation is based on calling isObscuredBy(), which you can reimplement to provide a custom obscurity algorithm.

See also opaqueArea().

Implements QtGui.IQGraphicsItem.

new bool QtGui.QGraphicsObject.IsObscured ( QRectF  rect)

This is an overloaded function.

Returns true if rect is completely obscured by the opaque shape of any of colliding items above it (i.e., with a higher Z value than this item).

Unlike the default isObscured() function, this function does not call isObscuredBy().

This function was introduced in Qt 4.3.

See also opaqueArea().

Implements QtGui.IQGraphicsItem.

new bool QtGui.QGraphicsObject.IsObscured ( double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling isObscured(QRectF(x, y, w, h)).

This function was introduced in Qt 4.3.

Implements QtGui.IQGraphicsItem.

virtual bool QtGui.QGraphicsObject.IsObscuredBy ( IQGraphicsItem  item)
virtual

Returns true if this item's bounding rect is completely obscured by the opaque shape of item.

The base implementation maps item's opaqueArea() to this item's coordinate system, and then checks if this item's boundingRect() is fully contained within the mapped shape.

You can reimplement this function to provide a custom algorithm for determining whether this item is obscured by item.

See also opaqueArea() and isObscured().

Implements QtGui.IQGraphicsItem.

Reimplemented in QtGui.QGraphicsTextItem.

new bool QtGui.QGraphicsObject.IsVisibleTo ( IQGraphicsItem  parent)

Returns true if the item is visible to parent; otherwise, false is returned. parent can be 0, in which case this function will return whether the item is visible to the scene or not.

An item may not be visible to its ancestors even if isVisible() is true. It may also be visible to its ancestors even if isVisible() is false. If any ancestor is hidden, the item itself will be implicitly hidden, in which case this function will return false.

This function was introduced in Qt 4.4.

See also isVisible() and setVisible().

Implements QtGui.IQGraphicsItem.

virtual object QtGui.QGraphicsObject.ItemChange ( QGraphicsItem.GraphicsItemChange  change,
object  value 
)
protectedvirtual
new QTransform QtGui.QGraphicsObject.ItemTransform ( IQGraphicsItem  other)

Returns a QTransform that maps coordinates from this item to other. If ok is not null, and if there is no such transform, the boolean pointed to by ok will be set to false; otherwise it will be set to true.

This transform provides an alternative to the mapToItem() or mapFromItem() functions, by returning the appropriate transform so that you can map shapes and coordinates yourself. It also helps you write more efficient code when repeatedly mapping between the same two items.

Note: In rare circumstances, there is no transform that maps between two items.

This function was introduced in Qt 4.5.

See also mapToItem(), mapFromItem(), and deviceTransform().

Implements QtGui.IQGraphicsItem.

new QTransform QtGui.QGraphicsObject.ItemTransform ( IQGraphicsItem  other,
ref bool  ok 
)

Returns a QTransform that maps coordinates from this item to other. If ok is not null, and if there is no such transform, the boolean pointed to by ok will be set to false; otherwise it will be set to true.

This transform provides an alternative to the mapToItem() or mapFromItem() functions, by returning the appropriate transform so that you can map shapes and coordinates yourself. It also helps you write more efficient code when repeatedly mapping between the same two items.

Note: In rare circumstances, there is no transform that maps between two items.

This function was introduced in Qt 4.5.

See also mapToItem(), mapFromItem(), and deviceTransform().

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapFromItem ( IQGraphicsItem  item,
QPointF  point 
)

Maps the point point, which is in item's coordinate system, to this item's coordinate system, and returns the mapped coordinate.

If item is 0, this function returns the same as mapFromScene().

See also itemTransform(), mapFromParent(), mapFromScene(), transform(), mapToItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapFromItem ( IQGraphicsItem  item,
QRectF  rect 
)

Maps the rectangle rect, which is in item's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a polygon.

If item is 0, this function returns the same as mapFromScene()

See also itemTransform(), mapToItem(), mapFromParent(), transform(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapFromItem ( IQGraphicsItem  item,
QPolygonF  polygon 
)

Maps the polygon polygon, which is in item's coordinate system, to this item's coordinate system, and returns the mapped polygon.

If item is 0, this function returns the same as mapFromScene().

See also itemTransform(), mapToItem(), mapFromParent(), transform(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPainterPath QtGui.QGraphicsObject.MapFromItem ( IQGraphicsItem  item,
QPainterPath  path 
)

Maps the path path, which is in item's coordinate system, to this item's coordinate system, and returns the mapped path.

If item is 0, this function returns the same as mapFromScene().

See also itemTransform(), mapFromParent(), mapFromScene(), mapToItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapFromItem ( IQGraphicsItem  item,
double  x,
double  y 
)

This is an overloaded function.

This convenience function is equivalent to calling mapFromItem(item, QPointF(x, y)).

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapFromItem ( IQGraphicsItem  item,
double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapFromItem(item, QRectF(x, y, w, h)).

This function was introduced in Qt 4.3.

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapFromParent ( QPointF  point)

Maps the point point, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped coordinate.

See also mapFromItem(), mapFromScene(), transform(), mapToParent(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapFromParent ( QRectF  rect)

Maps the rectangle rect, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a polygon.

See also mapToParent(), mapFromItem(), transform(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapFromParent ( QPolygonF  polygon)

Maps the polygon polygon, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped polygon.

See also mapToParent(), mapToItem(), transform(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPainterPath QtGui.QGraphicsObject.MapFromParent ( QPainterPath  path)

Maps the path path, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped path.

See also mapFromScene(), mapFromItem(), mapToParent(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapFromParent ( double  x,
double  y 
)

This is an overloaded function.

This convenience function is equivalent to calling mapFromParent(QPointF(x, y)).

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapFromParent ( double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapFromItem(QRectF(x, y, w, h)).

This function was introduced in Qt 4.3.

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapFromScene ( QPointF  point)

Maps the point point, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped coordinate.

See also mapFromItem(), mapFromParent(), transform(), mapToScene(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapFromScene ( QRectF  rect)

Maps the rectangle rect, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a polygon.

See also mapToScene(), mapFromItem(), transform(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapFromScene ( QPolygonF  polygon)

Maps the polygon polygon, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped polygon.

See also mapToScene(), mapFromParent(), transform(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPainterPath QtGui.QGraphicsObject.MapFromScene ( QPainterPath  path)

Maps the path path, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped path.

See also mapFromParent(), mapFromItem(), mapToScene(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapFromScene ( double  x,
double  y 
)

This is an overloaded function.

This convenience function is equivalent to calling mapFromScene(QPointF(x, y)).

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapFromScene ( double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapFromScene(QRectF(x, y, w, h)).

This function was introduced in Qt 4.3.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectFromItem ( IQGraphicsItem  item,
QRectF  rect 
)

Maps the rectangle rect, which is in item's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).

If item is 0, this function returns the same as mapRectFromScene().

This function was introduced in Qt 4.5.

See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectFromItem ( IQGraphicsItem  item,
double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapRectFromItem(item, QRectF(x, y, w, h)).

This function was introduced in Qt 4.5.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectFromParent ( QRectF  rect)

Maps the rectangle rect, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).

This function was introduced in Qt 4.5.

See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectFromParent ( double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapRectFromParent(QRectF(x, y, w, h)).

This function was introduced in Qt 4.5.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectFromScene ( QRectF  rect)

Maps the rectangle rect, which is in scene coordinates, to this item's coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).

This function was introduced in Qt 4.5.

See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectFromScene ( double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapRectFromScene(QRectF(x, y, w, h)).

This function was introduced in Qt 4.5.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectToItem ( IQGraphicsItem  item,
QRectF  rect 
)

Maps the rectangle rect, which is in this item's coordinate system, to item's coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).

If item is 0, this function returns the same as mapRectToScene().

This function was introduced in Qt 4.5.

See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectToItem ( IQGraphicsItem  item,
double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapRectToItem(item, QRectF(x, y, w, h)).

This function was introduced in Qt 4.5.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectToParent ( QRectF  rect)

Maps the rectangle rect, which is in this item's coordinate system, to its parent's coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).

This function was introduced in Qt 4.5.

See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectToParent ( double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapRectToParent(QRectF(x, y, w, h)).

This function was introduced in Qt 4.5.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectToScene ( QRectF  rect)

Maps the rectangle rect, which is in this item's coordinate system, to the scene coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).

This function was introduced in Qt 4.5.

See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QRectF QtGui.QGraphicsObject.MapRectToScene ( double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapRectToScene(QRectF(x, y, w, h)).

This function was introduced in Qt 4.5.

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapToItem ( IQGraphicsItem  item,
QPointF  point 
)

Maps the point point, which is in this item's coordinate system, to item's coordinate system, and returns the mapped coordinate.

If item is 0, this function returns the same as mapToScene().

See also itemTransform(), mapToParent(), mapToScene(), transform(), mapFromItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapToItem ( IQGraphicsItem  item,
QRectF  rect 
)

Maps the rectangle rect, which is in this item's coordinate system, to item's coordinate system, and returns the mapped rectangle as a polygon.

If item is 0, this function returns the same as mapToScene().

See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapToItem ( IQGraphicsItem  item,
QPolygonF  polygon 
)

Maps the polygon polygon, which is in this item's coordinate system, to item's coordinate system, and returns the mapped polygon.

If item is 0, this function returns the same as mapToScene().

See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPainterPath QtGui.QGraphicsObject.MapToItem ( IQGraphicsItem  item,
QPainterPath  path 
)

Maps the path path, which is in this item's coordinate system, to item's coordinate system, and returns the mapped path.

If item is 0, this function returns the same as mapToScene().

See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapToItem ( IQGraphicsItem  item,
double  x,
double  y 
)

This is an overloaded function.

This convenience function is equivalent to calling mapToItem(item, QPointF(x, y)).

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapToItem ( IQGraphicsItem  item,
double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapToItem(item, QRectF(x, y, w, h)).

This function was introduced in Qt 4.3.

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapToParent ( QPointF  point)

Maps the point point, which is in this item's coordinate system, to its parent's coordinate system, and returns the mapped coordinate. If the item has no parent, point will be mapped to the scene's coordinate system.

See also mapToItem(), mapToScene(), transform(), mapFromParent(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapToParent ( QRectF  rect)

Maps the rectangle rect, which is in this item's coordinate system, to its parent's coordinate system, and returns the mapped rectangle as a polygon. If the item has no parent, rect will be mapped to the scene's coordinate system.

See also mapToScene(), mapToItem(), mapFromParent(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapToParent ( QPolygonF  polygon)

Maps the polygon polygon, which is in this item's coordinate system, to its parent's coordinate system, and returns the mapped polygon. If the item has no parent, polygon will be mapped to the scene's coordinate system.

See also mapToScene(), mapToItem(), mapFromParent(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPainterPath QtGui.QGraphicsObject.MapToParent ( QPainterPath  path)

Maps the path path, which is in this item's coordinate system, to its parent's coordinate system, and returns the mapped path. If the item has no parent, path will be mapped to the scene's coordinate system.

See also mapToScene(), mapToItem(), mapFromParent(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapToParent ( double  x,
double  y 
)

This is an overloaded function.

This convenience function is equivalent to calling mapToParent(QPointF(x, y)).

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapToParent ( double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapToParent(QRectF(x, y, w, h)).

This function was introduced in Qt 4.3.

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapToScene ( QPointF  point)

Maps the point point, which is in this item's coordinate system, to the scene's coordinate system, and returns the mapped coordinate.

See also mapToItem(), mapToParent(), transform(), mapFromScene(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapToScene ( QRectF  rect)

Maps the rectangle rect, which is in this item's coordinate system, to the scene's coordinate system, and returns the mapped rectangle as a polygon.

See also mapToParent(), mapToItem(), mapFromScene(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapToScene ( QPolygonF  polygon)

Maps the polygon polygon, which is in this item's coordinate system, to the scene's coordinate system, and returns the mapped polygon.

See also mapToParent(), mapToItem(), mapFromScene(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPainterPath QtGui.QGraphicsObject.MapToScene ( QPainterPath  path)

Maps the path path, which is in this item's coordinate system, to the scene's coordinate system, and returns the mapped path.

See also mapToParent(), mapToItem(), mapFromScene(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new QPointF QtGui.QGraphicsObject.MapToScene ( double  x,
double  y 
)

This is an overloaded function.

This convenience function is equivalent to calling mapToScene(QPointF(x, y)).

Implements QtGui.IQGraphicsItem.

new QPolygonF QtGui.QGraphicsObject.MapToScene ( double  x,
double  y,
double  w,
double  h 
)

This convenience function is equivalent to calling mapToScene(QRectF(x, y, w, h)).

This function was introduced in Qt 4.3.

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.MoveBy ( double  dx,
double  dy 
)

Moves the item by dx points horizontally, and dy point vertically. This function is equivalent to calling setPos(pos() + QPointF(dx, dy)).

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.OnChildrenChanged ( )
protected
virtual void QtGui.QGraphicsObject.OnContextMenuEvent ( QGraphicsSceneContextMenuEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnDragEnterEvent ( QGraphicsSceneDragDropEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnDragLeaveEvent ( QGraphicsSceneDragDropEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnDragMoveEvent ( QGraphicsSceneDragDropEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnDropEvent ( QGraphicsSceneDragDropEvent event)
protectedvirtual
new void QtGui.QGraphicsObject.OnEnabledChanged ( )
protected

This signal gets emitted whenever the item get's enabled or disabled.

See also isEnabled().

virtual void QtGui.QGraphicsObject.OnFocusInEvent ( QFocusEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnFocusOutEvent ( QFocusEvent event)
protectedvirtual
new void QtGui.QGraphicsObject.OnHeightChanged ( )
protected
virtual void QtGui.QGraphicsObject.OnHoverEnterEvent ( QGraphicsSceneHoverEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnHoverLeaveEvent ( QGraphicsSceneHoverEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnHoverMoveEvent ( QGraphicsSceneHoverEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnInputMethodEvent ( QInputMethodEvent event)
protectedvirtual

Reimplemented in QtGui.QGraphicsTextItem.

virtual void QtGui.QGraphicsObject.OnKeyPressEvent ( QKeyEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnKeyReleaseEvent ( QKeyEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnMouseDoubleClickEvent ( QGraphicsSceneMouseEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnMouseMoveEvent ( QGraphicsSceneMouseEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnMousePressEvent ( QGraphicsSceneMouseEvent event)
protectedvirtual
virtual void QtGui.QGraphicsObject.OnMouseReleaseEvent ( QGraphicsSceneMouseEvent event)
protectedvirtual
new void QtGui.QGraphicsObject.OnOpacityChanged ( )
protected

This signal gets emitted whenever the opacity of the item changes

See also QGraphicsItem::opacity().

new void QtGui.QGraphicsObject.OnParentChanged ( )
protected

This signal gets emitted whenever the parent of the item changes

new void QtGui.QGraphicsObject.OnRotationChanged ( )
protected

This signal gets emitted whenever the roation of the item changes.

new void QtGui.QGraphicsObject.OnScaleChanged ( )
protected

This signal is emitted when the scale of the item changes.

virtual bool QtGui.QGraphicsObject.OnSceneEvent ( QEvent event)
protectedvirtual
new void QtGui.QGraphicsObject.OnVisibleChanged ( )
protected

This signal gets emitted whenever the visibility of the item changes

See also visible.

virtual void QtGui.QGraphicsObject.OnWheelEvent ( QGraphicsSceneWheelEvent event)
protectedvirtual

Reimplemented in QtGui.QGraphicsProxyWidget.

new void QtGui.QGraphicsObject.OnWidthChanged ( )
protected
new void QtGui.QGraphicsObject.OnXChanged ( )
protected

This signal gets emitted whenever the x position of the item changes

See also pos().

new void QtGui.QGraphicsObject.OnYChanged ( )
protected

This signal gets emitted whenever the y position of the item changes.

See also pos().

new void QtGui.QGraphicsObject.OnZChanged ( )
protected

This signal gets emitted whenever the z value of the item changes.

See also pos().

abstract void QtGui.QGraphicsObject.Paint ( QPainter  painter,
QStyleOptionGraphicsItem  option,
QWidget  widget = null 
)
pure virtual

This function, which is usually called by QGraphicsView, paints the contents of an item in local coordinates.

Reimplement this function in a QGraphicsItem subclass to provide the item's painting implementation, using painter. The option parameter provides style options for the item, such as its state, exposed area and its level-of-detail hints. The widget argument is optional. If provided, it points to the widget that is being painted on; otherwise, it is 0. For cached painting, widget is always 0.

void RoundRectItem::paint(QPainter *painter,

const QStyleOptionGraphicsItem *option,

QWidget *widget)

{

painter->drawRoundedRect(-10, -10, 20, 20, 5, 5);

}

The painter's pen is 0-width by default, and its pen is initialized to the QPalette::Text brush from the paint device's palette. The brush is initialized to QPalette::Window.

Make sure to constrain all painting inside the boundaries of boundingRect() to avoid rendering artifacts (as QGraphicsView does not clip the painter for you). In particular, when QPainter renders the outline of a shape using an assigned QPen, half of the outline will be drawn outside, and half inside, the shape you're rendering (e.g., with a pen width of 2 units, you must draw outlines 1 unit inside boundingRect()). QGraphicsItem does not support use of cosmetic pens with a non-zero width.

All painting is done in local coordinates.

See also setCacheMode(), QPen::width(), Item Coordinates, and ItemUsesExtendedStyleOption.

Implements QtGui.IQGraphicsItem.

Implemented in QtGui.QGraphicsWidget, QtGui.QGraphicsTextItem, QtGui.QGraphicsProxyWidget, and QtSvg.QGraphicsSvgItem.

new void QtGui.QGraphicsObject.PrepareGeometryChange ( )
protected
new void QtGui.QGraphicsObject.RemoveFromIndex ( )
protected
new void QtGui.QGraphicsObject.RemoveSceneEventFilter ( IQGraphicsItem  filterItem)

Removes an event filter on this item from filterItem.

See also installSceneEventFilter().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.ResetMatrix ( )

Use resetTransform() instead.

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.ResetTransform ( )

Resets this item's transformation matrix to the identity matrix or all the transformation properties to their default values. This is equivalent to calling setTransform(QTransform()).

This function was introduced in Qt 4.3.

See also setTransform() and transform().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.Rotate ( double  angle)

Use

setRotation(rotation() + angle);

instead.

Rotates the current item transformation angle degrees clockwise around its origin. To translate around an arbitrary point (x, y), you need to combine translation and rotation with setTransform().

Example:

// Rotate an item 45 degrees around (0, 0).

item->rotate(45);

// Rotate an item 45 degrees around (x, y).

item->setTransform(QTransform().translate(x, y).rotate(45).translate(-x, -y));

See also setTransform(), transform(), scale(), shear(), and translate().

Implements QtGui.IQGraphicsItem.

new double QtGui.QGraphicsObject.Scale ( )

Returns the scale factor of the item. The default scale factor is 1.0 (i.e., the item is not scaled).

The scale is combined with the item's rotation(), transform() and transformations() to map the item's coordinate system to the parent item.

This function was introduced in Qt 4.6.

See also setScale(), rotation(), and Transformations.

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.Scale ( double  sx,
double  sy 
)

Use

setTransform(QTransform::fromScale(sx, sy), true);

instead.

Scales the current item transformation by (sx, sy) around its origin. To scale from an arbitrary point (x, y), you need to combine translation and scaling with setTransform().

Example:

// Scale an item by 3x2 from its origin

item->scale(3, 2);

// Scale an item by 3x2 from (x, y)

item->setTransform(QTransform().translate(x, y).scale(3, 2).translate(-x, -y));

See also setTransform() and transform().

Implements QtGui.IQGraphicsItem.

virtual bool QtGui.QGraphicsObject.SceneEventFilter ( IQGraphicsItem  watched,
QEvent event 
)
protectedvirtual
new void QtGui.QGraphicsObject.Scroll ( double  dx,
double  dy 
)

Scrolls the contents of rect by dx, dy. If rect is a null rect (the default), the item's bounding rect is scrolled.

Scrolling provides a fast alternative to simply redrawing when the contents of the item (or parts of the item) are shifted vertically or horizontally. Depending on the current transformation and the capabilities of the paint device (i.e., the viewport), this operation may consist of simply moving pixels from one location to another using memmove(). In most cases this is faster than rerendering the entire area.

After scrolling, the item will issue an update for the newly exposed areas. If scrolling is not supported (e.g., you are rendering to an OpenGL viewport, which does not benefit from scroll optimizations), this function is equivalent to calling update(rect).

Note: Scrolling is only supported when QGraphicsItem::ItemCoordinateCache is enabled; in all other cases calling this function is equivalent to calling update(rect). If you for sure know that the item is opaque and not overlapped by other items, you can map the rect to viewport coordinates and scroll the viewport.

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

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

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

This function was introduced in Qt 4.4.

See also boundingRect().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.Scroll ( double  dx,
double  dy,
QRectF  rect 
)

Scrolls the contents of rect by dx, dy. If rect is a null rect (the default), the item's bounding rect is scrolled.

Scrolling provides a fast alternative to simply redrawing when the contents of the item (or parts of the item) are shifted vertically or horizontally. Depending on the current transformation and the capabilities of the paint device (i.e., the viewport), this operation may consist of simply moving pixels from one location to another using memmove(). In most cases this is faster than rerendering the entire area.

After scrolling, the item will issue an update for the newly exposed areas. If scrolling is not supported (e.g., you are rendering to an OpenGL viewport, which does not benefit from scroll optimizations), this function is equivalent to calling update(rect).

Note: Scrolling is only supported when QGraphicsItem::ItemCoordinateCache is enabled; in all other cases calling this function is equivalent to calling update(rect). If you for sure know that the item is opaque and not overlapped by other items, you can map the rect to viewport coordinates and scroll the viewport.

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

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

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

This function was introduced in Qt 4.4.

See also boundingRect().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.SetActive ( bool  active)

If active is true, and the scene is active, this item's panel will be activated. Otherwise, the panel is deactivated.

If the item is not part of an active scene, active will decide what happens to the panel when the scene becomes active or the item is added to the scene. If true, the item's panel will be activated when the item is either added to the scene or the scene is activated. Otherwise, the item will stay inactive independent of the scene's activated state.

This function was introduced in Qt 4.6.

See also isPanel(), QGraphicsScene::setActivePanel(), and QGraphicsScene::isActive().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.SetCacheMode ( QGraphicsItem.CacheMode  mode,
QSize  cacheSize 
)

Sets the item's cache mode to mode.

The optional logicalCacheSize argument is used only by ItemCoordinateCache mode, and describes the resolution of the cache buffer; if logicalCacheSize is (100, 100), QGraphicsItem will fit the item into 100x100 pixels in graphics memory, regardless of the logical size of the item itself. By default QGraphicsItem uses the size of boundingRect(). For all other cache modes than ItemCoordinateCache, logicalCacheSize is ignored.

Caching can speed up rendering if your item spends a significant time redrawing itself. In some cases the cache can also slow down rendering, in particular when the item spends less time redrawing than QGraphicsItem spends redrawing from the cache. When enabled, the item's paint() function will be called only once for each call to update(); for any subsequent repaint requests, the Graphics View framework will redraw from the cache. This approach works particularly well with QGLWidget, which stores all the cache as OpenGL textures.

Be aware that QPixmapCache's cache limit may need to be changed to obtain optimal performance.

You can read more about the different cache modes in the CacheMode documentation.

This function was introduced in Qt 4.4.

See also cacheMode(), CacheMode, and QPixmapCache::setCacheLimit().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.SetData ( int  key,
object  value 
)

Sets this item's custom data for the key key to value.

Custom item data is useful for storing arbitrary properties for any item. Qt does not use this feature for storing data; it is provided solely for the convenience of the user.

See also data().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.SetEnabled ( bool  enabled)

If enabled is true, the item is enabled; otherwise, it is disabled.

Disabled items are visible, but they do not receive any events, and cannot take focus nor be selected. Mouse events are discarded; they are not propagated unless the item is also invisible, or if it does not accept mouse events (see acceptedMouseButtons()). A disabled item cannot become the mouse grabber, and as a result of this, an item loses the grab if it becomes disabled when grabbing the mouse, just like it loses focus if it had focus when it was disabled.

Disabled items are traditionally drawn using grayed-out colors (see QPalette::Disabled).

If you disable a parent item, all its children will also be disabled. If you enable a parent item, all children will be enabled, unless they have been explicitly disabled (i.e., if you call setEnabled(false) on a child, it will not be reenabled if its parent is disabled, and then enabled again).

Items are enabled by default.

Note: If you install an event filter, you can still intercept events before they are delivered to items; this mechanism disregards the item's enabled state.

See also isEnabled().

Implements QtGui.IQGraphicsItem.

virtual void QtGui.QGraphicsObject.SetExtension ( QGraphicsItem.Extension  extension,
object  variant 
)
protectedvirtual

Reimplemented in QtGui.QGraphicsTextItem.

Here is the call graph for this function:

new void QtGui.QGraphicsObject.SetFlag ( QGraphicsItem.GraphicsItemFlag  flag,
bool  enabled = true 
)

If enabled is true, the item flag flag is enabled; otherwise, it is disabled.

See also flags() and setFlags().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.SetFocus ( Qt.FocusReason  focusReason = Qt.FocusReason.OtherFocusReason)

Gives keyboard input focus to this item. The focusReason argument will be passed into any focus event generated by this function; it is used to give an explanation of what caused the item to get focus.

Only enabled items that set the ItemIsFocusable flag can accept keyboard focus.

If this item is not visible, not active, or not associated with a scene, it will not gain immediate input focus. However, it will be registered as the preferred focus item for its subtree of items, should it later become visible.

As a result of calling this function, this item will receive a focus in event with focusReason. If another item already has focus, that item will first receive a focus out event indicating that it has lost input focus.

See also clearFocus(), hasFocus(), focusItem(), and focusProxy().

new void QtGui.QGraphicsObject.SetMatrix ( QMatrix  matrix,
bool  combine = false 
)

Sets the item's affine transformation matrix. This is a subset or the item's full transformation matrix, and might not represent the item's full transformation.

Use setTransform() instead.

See also matrix(), transform(), and The Graphics View Coordinate System.

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.SetPos ( double  x,
double  y 
)

This is an overloaded function.

This convenience function is equivalent to calling setPos(QPointF(x, y)).

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.SetScale ( double  scale)

Sets the scale factor of the item. The default scale factor is 1.0 (i.e., the item is not scaled). A scale factor of 0.0 will collapse the item to a single point. If you provide a negative scale factor, the item will be flipped and mirrored (i.e., rotated 180 degrees).

The item is scaled around its transform origin point, which by default is (0, 0). You can select a different transformation origin by calling setTransformOriginPoint().

The scale is combined with the item's rotation(), transform() and transformations() to map the item's coordinate system to the parent item.

This function was introduced in Qt 4.6.

See also scale(), setTransformOriginPoint(), and Transformations Example.

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.SetSelected ( bool  selected)

If selected is true and this item is selectable, this item is selected; otherwise, it is unselected.

If the item is in a group, the whole group's selected state is toggled by this function. If the group is selected, all items in the group are also selected, and if the group is not selected, no item in the group is selected.

Only visible, enabled, selectable items can be selected. If selected is true and this item is either invisible or disabled or unselectable, this function does nothing.

By default, items cannot be selected. To enable selection, set the ItemIsSelectable flag.

This function is provided for convenience, allowing individual toggling of the selected state of an item. However, a more common way of selecting items is to call QGraphicsScene::setSelectionArea(), which will call this function for all visible, enabled, and selectable items within a specified area on the scene.

See also isSelected() and QGraphicsScene::selectedItems().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.SetTransform ( QTransform  matrix,
bool  combine = false 
)

Sets the item's current transformation matrix to matrix.

If combine is true, then matrix is combined with the current matrix; otherwise, matrix replaces the current matrix. combine is false by default.

To simplify interation with items using a transformed view, QGraphicsItem provides mapTo... and mapFrom... functions that can translate between items' and the scene's coordinates. For example, you can call mapToScene() to map an item coordiate to a scene coordinate, or mapFromScene() to map from scene coordinates to item coordinates.

The transformation matrix is combined with the item's rotation(), scale() and transformations() into a combined transformation that maps the item's coordinate system to its parent.

This function was introduced in Qt 4.3.

See also transform(), setRotation(), setScale(), setTransformOriginPoint(), The Graphics View Coordinate System, and Transformations.

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.SetTransformOriginPoint ( double  ax,
double  ay 
)

This is an overloaded function.

Sets the origin point for the transformation in item coordinates. This is equivalent to calling setTransformOriginPoint(QPointF(x, y)).

This function was introduced in Qt 4.6.

See also setTransformOriginPoint() and Transformations.

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.SetVisible ( bool  visible)

If visible is true, the item is made visible. Otherwise, the item is made invisible. Invisible items are not painted, nor do they receive any events. In particular, mouse events pass right through invisible items, and are delivered to any item that may be behind. Invisible items are also unselectable, they cannot take input focus, and are not detected by QGraphicsScene's item location functions.

If an item becomes invisible while grabbing the mouse, (i.e., while it is receiving mouse events,) it will automatically lose the mouse grab, and the grab is not regained by making the item visible again; it must receive a new mouse press to regain the mouse grab.

Similarly, an invisible item cannot have focus, so if the item has focus when it becomes invisible, it will lose focus, and the focus is not regained by simply making the item visible again.

If you hide a parent item, all its children will also be hidden. If you show a parent item, all children will be shown, unless they have been explicitly hidden (i.e., if you call setVisible(false) on a child, it will not be reshown even if its parent is hidden, and then shown again).

Items are visible by default; it is unnecessary to call setVisible() on a new item.

See also isVisible(), show(), and hide().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.Shear ( double  sh,
double  sv 
)

Use

setTransform(QTransform().shear(sh, sv), true);

instead.

Shears the current item transformation by (sh, sv).

See also setTransform() and transform().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.Show ( )

Shows the item. (Items are visible by default.)

This convenience function is equivalent to calling setVisible(true).

See also hide() and setVisible().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.StackBefore ( IQGraphicsItem  sibling)

Stacks this item before sibling, which must be a sibling item (i.e., the two items must share the same parent item, or must both be toplevel items). The sibling must have the same Z value as this item, otherwise calling this function will have no effect.

By default, all sibling items are stacked by insertion order (i.e., the first item you add is drawn before the next item you add). If two items' Z values are different, then the item with the highest Z value is drawn on top. When the Z values are the same, the insertion order will decide the stacking order.

This function was introduced in Qt 4.6.

See also setZValue(), ItemStacksBehindParent, and Sorting.

Implements QtGui.IQGraphicsItem.

virtual bool QtGui.QGraphicsObject.SupportsExtension ( QGraphicsItem.Extension  extension)
protectedvirtual

Reimplemented in QtGui.QGraphicsTextItem.

Here is the call graph for this function:

new QGraphicsObject QtGui.QGraphicsObject.ToGraphicsObject ( )

Return the graphics item cast to a QGraphicsObject, if the class is actually a graphics object, 0 otherwise.

This function was introduced in Qt 4.6.

Implements QtGui.IQGraphicsItem.

static string QtGui.QGraphicsObject.Tr ( string  s,
string  c = null 
)
static
static string QtGui.QGraphicsObject.Tr ( string  s,
string  c,
int  n 
)
static
new void QtGui.QGraphicsObject.Translate ( double  dx,
double  dy 
)

Use setPos() or setTransformOriginPoint() instead. For identical behavior, use

setTransform(QTransform::fromTranslate(dx, dy), true);

Translates the current item transformation by (dx, dy).

If all you want is to move an item, you should call moveBy() or setPos() instead; this function changes the item's translation, which is conceptually separate from its position.

See also setTransform() and transform().

Implements QtGui.IQGraphicsItem.

static string QtGui.QGraphicsObject.TrUtf8 ( string  s,
string  c = null 
)
static
static string QtGui.QGraphicsObject.TrUtf8 ( string  s,
string  c,
int  n 
)
static
new void QtGui.QGraphicsObject.UngrabGesture ( Qt.GestureType  type)

Unsubscribes the graphics object from the given gesture.

See also grabGesture() and QGestureEvent.

new void QtGui.QGraphicsObject.UngrabKeyboard ( )

Releases the keyboard grab.

This function was introduced in Qt 4.4.

See also grabKeyboard() and ungrabMouse().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.UngrabMouse ( )

Releases the mouse grab.

This function was introduced in Qt 4.4.

See also grabMouse() and ungrabKeyboard().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.UnsetCursor ( )

Clears the cursor from this item.

See also hasCursor() and setCursor().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.Update ( )

Schedules a redraw of the area covered by rect in this item. You can call this function whenever your item needs to be redrawn, such as if it changes appearance or size.

This function does not cause an immediate paint; instead it schedules a paint request that is processed by QGraphicsView after control reaches the event loop. The item will only be redrawn if it is visible in any associated view.

As a side effect of the item being repainted, other items that overlap the area rect may also be repainted.

If the item is invisible (i.e., isVisible() returns false), this function does nothing.

See also paint() and boundingRect().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.Update ( QRectF  rect)

Schedules a redraw of the area covered by rect in this item. You can call this function whenever your item needs to be redrawn, such as if it changes appearance or size.

This function does not cause an immediate paint; instead it schedules a paint request that is processed by QGraphicsView after control reaches the event loop. The item will only be redrawn if it is visible in any associated view.

As a side effect of the item being repainted, other items that overlap the area rect may also be repainted.

If the item is invisible (i.e., isVisible() returns false), this function does nothing.

See also paint() and boundingRect().

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.Update ( double  x,
double  y,
double  width,
double  height 
)

This is an overloaded function.

This convenience function is equivalent to calling update(QRectF(x, y, width, height)).

Implements QtGui.IQGraphicsItem.

new void QtGui.QGraphicsObject.UpdateMicroFocus ( )
protected

Updates the item's micro focus. This is slot for convenience.

This function was introduced in Qt 4.7.

See also QInputContext.

Property Documentation

bool QtGui.QGraphicsObject.AcceptDrops
getset

Returns true if this item can accept drag and drop events; otherwise, returns false. By default, items do not accept drag and drop events; items are transparent to drag and drop.

If on is true, this item will accept drag and drop events; otherwise, it is transparent for drag and drop events. By default, items do not accept drag and drop events.

Qt.MouseButton QtGui.QGraphicsObject.AcceptedMouseButtons
getset

Returns the mouse buttons that this item accepts mouse events for. By default, all mouse buttons are accepted.

If an item accepts a mouse button, it will become the mouse grabber item when a mouse press event is delivered for that mouse button. However, if the item does not accept the button, QGraphicsScene will forward the mouse events to the first item beneath it that does.

Sets the mouse buttons that this item accepts mouse events for.

By default, all mouse buttons are accepted. If an item accepts a mouse button, it will become the mouse grabber item when a mouse press event is delivered for that button. However, if the item does not accept the mouse button, QGraphicsScene will forward the mouse events to the first item beneath it that does.

To disable mouse events for an item (i.e., make it transparent for mouse events), call setAcceptedMouseButtons(0).

bool QtGui.QGraphicsObject.AcceptHoverEvents
getset

Returns true if an item accepts hover events (QGraphicsSceneHoverEvent); otherwise, returns false. By default, items do not accept hover events.

This function was introduced in Qt 4.4.

If enabled is true, this item will accept hover events; otherwise, it will ignore them. By default, items do not accept hover events.

Hover events are delivered when there is no current mouse grabber item. They are sent when the mouse cursor enters an item, when it moves around inside the item, and when the cursor leaves an item. Hover events are commonly used to highlight an item when it's entered, and for tracking the mouse cursor as it hovers over the item (equivalent to QWidget::mouseTracking).

Parent items receive hover enter events before their children, and leave events after their children. The parent does not receive a hover leave event if the cursor enters a child, though; the parent stays "hovered" until the cursor leaves its area, including its children's areas.

If a parent item handles child events, it will receive hover move, drag move, and drop events as the cursor passes through its children, but it does not receive hover enter and hover leave, nor drag enter and drag leave events on behalf of its children.

A QGraphicsWidget with window decorations will accept hover events regardless of the value of acceptHoverEvents().

This function was introduced in Qt 4.4.

bool QtGui.QGraphicsObject.AcceptsHoverEvents
getset

Call acceptHoverEvents() instead.

Use setAcceptHoverEvents(enabled) instead.

bool QtGui.QGraphicsObject.AcceptTouchEvents
getset

Returns true if an item accepts touch events; otherwise, returns false. By default, items do not accept touch events.

This function was introduced in Qt 4.6.

If enabled is true, this item will accept touch events; otherwise, it will ignore them. By default, items do not accept touch events.

This function was introduced in Qt 4.6.

virtual QRectF QtGui.QGraphicsObject.BoundingRect
get

This pure virtual function defines the outer bounds of the item as a rectangle; all painting must be restricted to inside an item's bounding rect. QGraphicsView uses this to determine whether the item requires redrawing.

Although the item's shape can be arbitrary, the bounding rect is always rectangular, and it is unaffected by the items' transformation.

If you want to change the item's bounding rectangle, you must first call prepareGeometryChange(). This notifies the scene of the imminent change, so that its can update its item geometry index; otherwise, the scene will be unaware of the item's new geometry, and the results are undefined (typically, rendering artifacts are left around in the view).

Reimplement this function to let QGraphicsView determine what parts of the widget, if any, need to be redrawn.

Note: For shapes that paint an outline / stroke, it is important to include half the pen width in the bounding rect. It is not necessary to compensate for antialiasing, though.

Example:

QRectF CircleItem::boundingRect() const

{

qreal penWidth = 1;

return QRectF(-radius - penWidth / 2, -radius - penWidth / 2,

diameter + penWidth, diameter + penWidth);

}

See also boundingRegion(), shape(), contains(), The Graphics View Coordinate System, and prepareGeometryChange().

double QtGui.QGraphicsObject.BoundingRegionGranularity
getset

Returns the item's bounding region granularity; a value between and including 0 and 1. The default value is 0 (i.e., the lowest granularity, where the bounding region corresponds to the item's bounding rectangle).

This function was introduced in Qt 4.4.

Sets the bounding region granularity to granularity; a value between and including 0 and 1. The default value is 0 (i.e., the lowest granularity, where the bounding region corresponds to the item's bounding rectangle).

The granularity is used by boundingRegion() to calculate how fine the bounding region of the item should be. The highest achievable granularity is 1, where boundingRegion() will return the finest outline possible for the respective device (e.g., for a QGraphicsView viewport, this gives you a pixel-perfect bounding region). The lowest possible granularity is 0. The value of granularity describes the ratio between device resolution and the resolution of the bounding region (e.g., a value of 0.25 will provide a region where each chunk corresponds to 4x4 device units / pixels).

This function was introduced in Qt 4.4.

QGraphicsItem.CacheMode QtGui.QGraphicsObject.cacheMode
getset

Returns the cache mode for this item. The default mode is NoCache (i.e., cache is disabled and all painting is immediate).

This function was introduced in Qt 4.4.

Sets the item's cache mode to mode.

The optional logicalCacheSize argument is used only by ItemCoordinateCache mode, and describes the resolution of the cache buffer; if logicalCacheSize is (100, 100), QGraphicsItem will fit the item into 100x100 pixels in graphics memory, regardless of the logical size of the item itself. By default QGraphicsItem uses the size of boundingRect(). For all other cache modes than ItemCoordinateCache, logicalCacheSize is ignored.

Caching can speed up rendering if your item spends a significant time redrawing itself. In some cases the cache can also slow down rendering, in particular when the item spends less time redrawing than QGraphicsItem spends redrawing from the cache. When enabled, the item's paint() function will be called only once for each call to update(); for any subsequent repaint requests, the Graphics View framework will redraw from the cache. This approach works particularly well with QGLWidget, which stores all the cache as OpenGL textures.

Be aware that QPixmapCache's cache limit may need to be changed to obtain optimal performance.

You can read more about the different cache modes in the CacheMode documentation.

This function was introduced in Qt 4.4.

Sets the item's cache mode to mode.

The optional logicalCacheSize argument is used only by ItemCoordinateCache mode, and describes the resolution of the cache buffer; if logicalCacheSize is (100, 100), QGraphicsItem will fit the item into 100x100 pixels in graphics memory, regardless of the logical size of the item itself. By default QGraphicsItem uses the size of boundingRect(). For all other cache modes than ItemCoordinateCache, logicalCacheSize is ignored.

Caching can speed up rendering if your item spends a significant time redrawing itself. In some cases the cache can also slow down rendering, in particular when the item spends less time redrawing than QGraphicsItem spends redrawing from the cache. When enabled, the item's paint() function will be called only once for each call to update(); for any subsequent repaint requests, the Graphics View framework will redraw from the cache. This approach works particularly well with QGLWidget, which stores all the cache as OpenGL textures.

Be aware that QPixmapCache's cache limit may need to be changed to obtain optimal performance.

You can read more about the different cache modes in the CacheMode documentation.

This function was introduced in Qt 4.4.

System.Collections.Generic.List<IQGraphicsItem> QtGui.QGraphicsObject.ChildItems
get

Returns a list of this item's children.

The items are sorted by stacking order. This takes into account both the items' insertion order and their Z-values.

This function was introduced in Qt 4.4.

See also setParentItem(), zValue(), and Sorting.

System.Collections.Generic.List<QObject> QtGui.QGraphicsObject.children
get
QRectF QtGui.QGraphicsObject.ChildrenBoundingRect
get

Returns the bounding rect of this item's descendants (i.e., its children, their children, etc.) in local coordinates. The rectangle will contain all descendants after they have been mapped to local coordinates. If the item has no children, this function returns an empty QRectF.

This does not include this item's own bounding rect; it only returns its descendants' accumulated bounding rect. If you need to include this item's bounding rect, you can add boundingRect() to childrenBoundingRect() using QRectF::operator|().

This function is linear in complexity; it determines the size of the returned bounding rect by iterating through all descendants.

See also boundingRect() and sceneBoundingRect().

Slot QtGui.QGraphicsObject.ChildrenChanged
addremove
QPainterPath QtGui.QGraphicsObject.ClipPath
get

Returns this item's clip path, or an empty QPainterPath if this item is not clipped. The clip path constrains the item's appearance and interaction (i.e., restricts the area the item can draw, and it also restricts the area that the item receives events).

You can enable clipping by setting the ItemClipsToShape or ItemClipsChildrenToShape flags. The item's clip path is calculated by intersecting all clipping ancestors' shapes. If the item sets ItemClipsToShape, the final clip is intersected with the item's own shape.

Note: Clipping introduces a performance penalty for all items involved; you should generally avoid using clipping if you can (e.g., if your items always draw inside boundingRect() or shape() boundaries, clipping is not necessary).

This function was introduced in Qt 4.5.

See also isClipped(), shape(), and setFlags().

QCursor QtGui.QGraphicsObject.Cursor
getset

Returns the current cursor shape for the item. The mouse cursor will assume this shape when it's over this item. See the list of predefined cursor objects for a range of useful shapes.

An editor item might want to use an I-beam cursor:

item->setCursor(Qt::IBeamCursor);

If no cursor has been set, the cursor of the item beneath is used.

Sets the current cursor shape for the item to cursor. The mouse cursor will assume this shape when it's over this item. See the list of predefined cursor objects for a range of useful shapes.

An editor item might want to use an I-beam cursor:

item->setCursor(Qt::IBeamCursor);

If no cursor has been set, the cursor of the item beneath is used.

new QGraphicsEffect QtGui.QGraphicsObject.Effect
getset
double QtGui.QGraphicsObject.EffectiveOpacity
get

Returns this item's effective opacity, which is between 0.0 (transparent) and 1.0 (opaque). This value is a combination of this item's local opacity, and its parent and ancestors' opacities. The effective opacity decides how the item is rendered.

This function was introduced in Qt 4.5.

See also opacity(), setOpacity(), paint(), ItemIgnoresParentOpacity, and ItemDoesntPropagateOpacityToChildren.

new IQGraphicsObjectSignals QtGui.QGraphicsObject.Emit
getprotected
Slot QtGui.QGraphicsObject.EnabledChanged
addremove

This signal gets emitted whenever the item get's enabled or disabled.

See also isEnabled().

bool QtGui.QGraphicsObject.FiltersChildEvents
getset

Returns true if this item filters child events (i.e., all events intended for any of its children are instead sent to this item); otherwise, false is returned.

The default value is false; child events are not filtered.

This function was introduced in Qt 4.6.

If enabled is true, this item is set to filter all events for all its children (i.e., all events intented for any of its children are instead sent to this item); otherwise, if enabled is false, this item will only handle its own events. The default value is false.

This function was introduced in Qt 4.6.

QGraphicsItem.GraphicsItemFlag QtGui.QGraphicsObject.Flags
getset

Returns this item's flags. The flags describe what configurable features of the item are enabled and not. For example, if the flags include ItemIsFocusable, the item can accept input focus.

By default, no flags are enabled.

Sets the item flags to flags. All flags in flags are enabled; all flags not in flags are disabled.

If the item had focus and flags does not enable ItemIsFocusable, the item loses focus as a result of calling this function. Similarly, if the item was selected, and flags does not enabled ItemIsSelectable, the item is automatically unselected.

By default, no flags are enabled. (QGraphicsWidget enables the ItemSendsGeometryChanges flag by default in order to track position changes.)

IQGraphicsItem QtGui.QGraphicsObject.FocusProxy
getset

Returns this item's focus proxy, or 0 if this item has no focus proxy.

This function was introduced in Qt 4.6.

Sets the item's focus proxy to item.

If an item has a focus proxy, the focus proxy will receive input focus when the item gains input focus. The item itself will still have focus (i.e., hasFocus() will return true), but only the focus proxy will receive the keyboard input.

A focus proxy can itself have a focus proxy, and so on. In such case, keyboard input will be handled by the outermost focus proxy.

The focus proxy item must belong to the same scene as this item.

This function was introduced in Qt 4.6.

QGraphicsEffect QtGui.QGraphicsObject.GraphicsEffect
getset

Returns a pointer to this item's effect if it has one; otherwise 0.

This function was introduced in Qt 4.6.

Sets effect as the item's effect. If there already is an effect installed on this item, QGraphicsItem will delete the existing effect before installing the new effect.

If effect is the installed on a different item, setGraphicsEffect() will remove the effect from the item and install it on this item.

QGraphicsItem takes ownership of effect.

Note: This function will apply the effect on itself and all its children.

This function was introduced in Qt 4.6.

QGraphicsItemGroup QtGui.QGraphicsObject.Group
getset

Returns a pointer to this item's item group, or 0 if this item is not member of a group.

Adds this item to the item group group. If group is 0, this item is removed from any current group and added as a child of the previous group's parent.

bool QtGui.QGraphicsObject.HandlesChildEvents
getset

Returns true if this item handles child events (i.e., all events intended for any of its children are instead sent to this item); otherwise, false is returned.

This property is useful for item groups; it allows one item to handle events on behalf of its children, as opposed to its children handling their events individually.

The default is to return false; children handle their own events. The exception for this is if the item is a QGraphicsItemGroup, then it defaults to return true.

If enabled is true, this item is set to handle all events for all its children (i.e., all events intented for any of its children are instead sent to this item); otherwise, if enabled is false, this item will only handle its own events. The default value is false.

This property is useful for item groups; it allows one item to handle events on behalf of its children, as opposed to its children handling their events individually.

If a child item accepts hover events, its parent will receive hover move events as the cursor passes through the child, but it does not receive hover enter and hover leave events on behalf of its child.

bool QtGui.QGraphicsObject.HasCursor
get

Returns true if this item has a cursor set; otherwise, false is returned.

By default, items don't have any cursor set. cursor() will return a standard pointing arrow cursor.

See also unsetCursor().

bool QtGui.QGraphicsObject.HasFocus
get

Returns true if this item is active, and it or its focus proxy has keyboard input focus; otherwise, returns false.

See also focusItem(), setFocus(), QGraphicsScene::setFocusItem(), and isActive().

new double QtGui.QGraphicsObject.Height
getset
Slot QtGui.QGraphicsObject.HeightChanged
addremove
Qt.InputMethodHint QtGui.QGraphicsObject.InputMethodHints
getset

Returns the current input method hints of this item.

Input method hints are only relevant for input items. The hints are used by the input method to indicate how it should operate. For example, if the Qt::ImhNumbersOnly flag is set, the input method may change its visual components to reflect that only numbers can be entered.

The effect may vary between input method implementations.

This function was introduced in Qt 4.6.

Sets the current input method hints of this item to hints.

This function was introduced in Qt 4.6.

bool QtGui.QGraphicsObject.IsActive
get

Returns true if this item is active; otherwise returns false.

An item can only be active if the scene is active. An item is active if it is, or is a descendent of, an active panel. Items in non-active panels are not active.

Items that are not part of a panel follow scene activation when the scene has no active panel.

Only active items can gain input focus.

This function was introduced in Qt 4.6.

See also QGraphicsScene::isActive(), QGraphicsScene::activePanel(), panel(), and isPanel().

bool QtGui.QGraphicsObject.IsClipped
get

Returns true if this item is clipped. An item is clipped if it has either set the ItemClipsToShape flag, or if it or any of its ancestors has set the ItemClipsChildrenToShape flag.

Clipping affects the item's appearance (i.e., painting), as well as mouse and hover event delivery.

See also clipPath(), shape(), and setFlags().

bool QtGui.QGraphicsObject.IsEnabled
get

Returns true if the item is enabled; otherwise, false is returned.

See also setEnabled().

bool QtGui.QGraphicsObject.IsPanel
get

Returns true if the item is a panel; otherwise returns false.

This function was introduced in Qt 4.6.

See also QGraphicsItem::panel() and ItemIsPanel.

bool QtGui.QGraphicsObject.IsSelected
get

Returns true if this item is selected; otherwise, false is returned.

Items that are in a group inherit the group's selected state.

Items are not selected by default.

See also setSelected() and QGraphicsScene::setSelectionArea().

bool QtGui.QGraphicsObject.IsUnderMouse
get

Returns true if this item is currently under the mouse cursor in one of the views; otherwise, false is returned.

This function was introduced in Qt 4,4.

See also QGraphicsScene::views() and QCursor::pos().

bool QtGui.QGraphicsObject.IsVisible
get

Returns true if the item is visible; otherwise, false is returned.

Note that the item's general visibility is unrelated to whether or not it is actually being visualized by a QGraphicsView.

See also setVisible().

bool QtGui.QGraphicsObject.IsWidget
get

Returns true if this item is a widget (i.e., QGraphicsWidget); otherwise, returns false.

This function was introduced in Qt 4.4.

bool QtGui.QGraphicsObject.IsWindow
get

Returns true if the item is a QGraphicsWidget window, otherwise returns false.

This function was introduced in Qt 4.4.

See also QGraphicsWidget::windowFlags().

QMatrix QtGui.QGraphicsObject.Matrix
get

Returns the item's affine transformation matrix. This is a subset or the item's full transformation matrix, and might not represent the item's full transformation.

Use transform() instead.

See also setMatrix(), setTransform(), and sceneTransform().

double QtGui.QGraphicsObject.Opacity
getset

Returns this item's local opacity, which is between 0.0 (transparent) and 1.0 (opaque). This value is combined with parent and ancestor values into the effectiveOpacity(). The effective opacity decides how the item is rendered.

The opacity property decides the state of the painter passed to the paint() function. If the item is cached, i.e., ItemCoordinateCache or DeviceCoordinateCache, the effective property will be applied to the item's cache as it is rendered.

The default opacity is 1.0; fully opaque.

This function was introduced in Qt 4.5.

Sets this item's local opacity, between 0.0 (transparent) and 1.0 (opaque). The item's local opacity is combined with parent and ancestor opacities into the effectiveOpacity().

By default, opacity propagates from parent to child, so if a parent's opacity is 0.5 and the child is also 0.5, the child's effective opacity will be 0.25.

The opacity property decides the state of the painter passed to the paint() function. If the item is cached, i.e., ItemCoordinateCache or DeviceCoordinateCache, the effective property will be applied to the item's cache as it is rendered.

There are two item flags that affect how the item's opacity is combined with the parent: ItemIgnoresParentOpacity and ItemDoesntPropagateOpacityToChildren.

This function was introduced in Qt 4.5.

Slot QtGui.QGraphicsObject.OpacityChanged
addremove

This signal gets emitted whenever the opacity of the item changes

See also QGraphicsItem::opacity().

virtual QPainterPath QtGui.QGraphicsObject.OpaqueArea
get

This virtual function returns a shape representing the area where this item is opaque. An area is opaque if it is filled using an opaque brush or color (i.e., not transparent).

This function is used by isObscuredBy(), which is called by underlying items to determine if they are obscured by this item.

The default implementation returns an empty QPainterPath, indicating that this item is completely transparent and does not obscure any other items.

See also isObscuredBy(), isObscured(), and shape().

IQGraphicsItem QtGui.QGraphicsObject.Panel
get

Returns the item's panel, or 0 if this item does not have a panel. If the item is a panel, it will return itself. Otherwise it will return the closest ancestor that is a panel.

This function was introduced in Qt 4.6.

See also isPanel() and ItemIsPanel.

QGraphicsItem.PanelModality QtGui.QGraphicsObject.panelModality
getset

Returns the modality for this item.

This function was introduced in Qt 4.6.

Sets the modality for this item to panelModality.

Changing the modality of a visible item takes effect immediately.

This function was introduced in Qt 4.6.

new QGraphicsObject QtGui.QGraphicsObject.Parent
getset
Slot QtGui.QGraphicsObject.ParentChanged
addremove

This signal gets emitted whenever the parent of the item changes

IQGraphicsItem QtGui.QGraphicsObject.ParentItem
getset

Returns a pointer to this item's parent item. If this item does not have a parent, 0 is returned.

Sets this item's parent item to newParent. If this item already has a parent, it is first removed from the previous parent. If newParent is 0, this item will become a top-level item.

Note that this implicitly adds this graphics item to the scene of the parent. You should not add the item to the scene yourself.

Calling this function on an item that is an ancestor of newParent have undefined behaviour.

QGraphicsObject QtGui.QGraphicsObject.ParentObject
get

Returns a pointer to the item's parent, cast to a QGraphicsObject. returns 0 if the parent item is not a QGraphicsObject.

This function was introduced in Qt 4.6.

See also parentItem() and childItems().

QGraphicsWidget QtGui.QGraphicsObject.ParentWidget
get

Returns a pointer to the item's parent widget. The item's parent widget is the closest parent item that is a widget.

This function was introduced in Qt 4.4.

See also parentItem() and childItems().

QPointF QtGui.QGraphicsObject.Pos
getset

Returns the position of the item in parent coordinates. If the item has no parent, its position is given in scene coordinates.

The position of the item describes its origin (local coordinate (0, 0)) in parent coordinates; this function returns the same as mapToParent(0, 0).

For convenience, you can also call scenePos() to determine the item's position in scene coordinates, regardless of its parent.

Sets the position of the item to pos, which is in parent coordinates. For items with no parent, pos is in scene coordinates.

The position of the item describes its origin (local coordinate (0, 0)) in parent coordinates.

This is an overloaded function.

This convenience function is equivalent to calling setPos(QPointF(x, y)).

double QtGui.QGraphicsObject.Rotation
getset

Returns the clockwise rotation, in degrees, around the Z axis. The default value is 0 (i.e., the item is not rotated).

The rotation is combined with the item's scale(), transform() and transformations() to map the item's coordinate system to the parent item.

This function was introduced in Qt 4.6.

Sets the clockwise rotation angle, in degrees, around the Z axis. The default value is 0 (i.e., the item is not rotated). Assigning a negative value will rotate the item counter-clockwise. Normally the rotation angle is in the range (-360, 360), but it's also possible to assign values outside of this range (e.g., a rotation of 370 degrees is the same as a rotation of 10 degrees).

The item is rotated around its transform origin point, which by default is (0, 0). You can select a different transformation origin by calling setTransformOriginPoint().

The rotation is combined with the item's scale(), transform() and transformations() to map the item's coordinate system to the parent item.

This function was introduced in Qt 4.6.

Slot QtGui.QGraphicsObject.RotationChanged
addremove

This signal gets emitted whenever the roation of the item changes.

Slot QtGui.QGraphicsObject.ScaleChanged
addremove

This signal is emitted when the scale of the item changes.

QGraphicsScene QtGui.QGraphicsObject.Scene
get

Returns the current scene for the item, or 0 if the item is not stored in a scene.

To add or move an item to a scene, call QGraphicsScene::addItem().

QRectF QtGui.QGraphicsObject.SceneBoundingRect
get

Returns the bounding rect of this item in scene coordinates, by combining sceneTransform() with boundingRect().

See also boundingRect() and The Graphics View Coordinate System.

QMatrix QtGui.QGraphicsObject.SceneMatrix
get

Use sceneTransform() instead.

See also transform(), setTransform(), scenePos(), and The Graphics View Coordinate System.

QPointF QtGui.QGraphicsObject.ScenePos
get

Returns the item's position in scene coordinates. This is equivalent to calling mapToScene(0, 0).

See also pos(), sceneTransform(), and The Graphics View Coordinate System.

QTransform QtGui.QGraphicsObject.SceneTransform
get

Returns this item's scene transformation matrix. This matrix can be used to map coordinates and geometrical shapes from this item's local coordinate system to the scene's coordinate system. To map coordinates from the scene, you must first invert the returned matrix.

Example:

QGraphicsRectItem rect;

rect.setPos(100, 100);

rect.sceneTransform().map(QPointF(0, 0));

// returns QPointF(100, 100);

rect.sceneTransform().inverted().map(QPointF(100, 100));

// returns QPointF(0, 0);

Unlike transform(), which returns only an item's local transformation, this function includes the item's (and any parents') position, and all the transfomation properties.

This function was introduced in Qt 4.3.

See also transform(), setTransform(), scenePos(), The Graphics View Coordinate System, and Transformations.

virtual QPainterPath QtGui.QGraphicsObject.Shape
get

Returns the shape of this item as a QPainterPath in local coordinates. The shape is used for many things, including collision detection, hit tests, and for the QGraphicsScene::items() functions.

The default implementation calls boundingRect() to return a simple rectangular shape, but subclasses can reimplement this function to return a more accurate shape for non-rectangular items. For example, a round item may choose to return an elliptic shape for better collision detection. For example:

QPainterPath RoundItem::shape() const

{

QPainterPath path;

path.addEllipse(boundingRect());

return path;

}

The outline of a shape can vary depending on the width and style of the pen used when drawing. If you want to include this outline in the item's shape, you can create a shape from the stroke using QPainterPathStroker.

This function is called by the default implementations of contains() and collidesWithPath().

See also boundingRect(), contains(), prepareGeometryChange(), and QPainterPathStroker.

new QMetaObject QtGui.QGraphicsObject.StaticMetaObject
staticget
string QtGui.QGraphicsObject.ToolTip
getset

Returns the item's tool tip, or an empty QString if no tool tip has been set.

Sets the item's tool tip to toolTip. If toolTip is empty, the item's tool tip is cleared.

IQGraphicsItem QtGui.QGraphicsObject.TopLevelItem
get

Returns this item's top-level item. The top-level item is the item's topmost ancestor item whose parent is 0. If an item has no parent, its own pointer is returned (i.e., a top-level item is its own top-level item).

See also parentItem().

QGraphicsWidget QtGui.QGraphicsObject.TopLevelWidget
get

Returns a pointer to the item's top level widget (i.e., the item's ancestor whose parent is 0, or whose parent is not a widget), or 0 if this item does not have a top level widget. If the item is its own top level widget, this function returns a pointer to the item itself.

This function was introduced in Qt 4.4.

QTransform QtGui.QGraphicsObject.Transform
get

Returns this item's transformation matrix.

The transformation matrix is combined with the item's rotation(), scale() and transformations() into a combined transformations for the item.

The default transformation matrix is an identity matrix.

This function was introduced in Qt 4.3.

See also setTransform() and sceneTransform().

System.Collections.Generic.List<QGraphicsTransform> QtGui.QGraphicsObject.Transformations
getset

Returns a list of graphics transforms that currently apply to this item.

QGraphicsTransform is for applying and controlling a chain of individual transformation operations on an item. It's particularly useful in animations, where each transform operation needs to be interpolated independently, or differently.

The transformations are combined with the item's rotation(), scale() and transform() to map the item's coordinate system to the parent item.

This function was introduced in Qt 4.6.

Sets a list of graphics transformations (QGraphicsTransform) that currently apply to this item.

If all you want is to rotate or scale an item, you should call setRotation() or setScale() instead. If you want to set an arbitrary transformation on an item, you can call setTransform().

QGraphicsTransform is for applying and controlling a chain of individual transformation operations on an item. It's particularly useful in animations, where each transform operation needs to be interpolated independently, or differently.

The transformations are combined with the item's rotation(), scale() and transform() to map the item's coordinate system to the parent item.

This function was introduced in Qt 4.6.

QPointF QtGui.QGraphicsObject.TransformOriginPoint
getset

Returns the origin point for the transformation in item coordinates.

The default is QPointF(0,0).

This function was introduced in Qt 4.6.

Sets the origin point for the transformation in item coordinates.

This function was introduced in Qt 4.6.

This is an overloaded function.

Sets the origin point for the transformation in item coordinates. This is equivalent to calling setTransformOriginPoint(QPointF(x, y)).

This function was introduced in Qt 4.6.

virtual int QtGui.QGraphicsObject.Type
get

Returns the type of an item as an int. All standard graphicsitem classes are associated with a unique value; see QGraphicsItem::Type. This type information is used by qgraphicsitem_cast() to distinguish between types.

The default implementation (in QGraphicsItem) returns UserType.

To enable use of qgraphicsitem_cast() with a custom item, reimplement this function and declare a Type enum value equal to your custom item's type. Custom items must return a value larger than or equal to UserType (65536).

For example:

class CustomItem : public QGraphicsItem

{

...

enum { Type = UserType + 1 };

int type() const

{

// Enable the use of qgraphicsitem_cast with this item.

return Type;

}

...

};

See also UserType.

Slot QtGui.QGraphicsObject.VisibleChanged
addremove

This signal gets emitted whenever the visibility of the item changes

See also visible.

new double QtGui.QGraphicsObject.Width
getset
Slot QtGui.QGraphicsObject.WidthChanged
addremove
QGraphicsWidget QtGui.QGraphicsObject.Window
get

Returns the item's window, or 0 if this item does not have a window. If the item is a window, it will return itself. Otherwise it will return the closest ancestor that is a window.

This function was introduced in Qt 4.4.

See also QGraphicsWidget::isWindow().

double QtGui.QGraphicsObject.X
getset

This convenience function is equivalent to calling pos().x().

Set's the x coordinate of the item's position. Equivalent to calling setPos(x, y()).

This function was introduced in Qt 4.6.

Slot QtGui.QGraphicsObject.XChanged
addremove

This signal gets emitted whenever the x position of the item changes

See also pos().

double QtGui.QGraphicsObject.Y
getset

This convenience function is equivalent to calling pos().y().

Set's the y coordinate of the item's position. Equivalent to calling setPos(x(), y).

This function was introduced in Qt 4.6.

Slot QtGui.QGraphicsObject.YChanged
addremove

This signal gets emitted whenever the y position of the item changes.

See also pos().

new double QtGui.QGraphicsObject.Z
getset
Slot QtGui.QGraphicsObject.ZChanged
addremove

This signal gets emitted whenever the z value of the item changes.

See also pos().

double QtGui.QGraphicsObject.ZValue
getset

Returns the Z-value of the item. The Z-value affects the stacking order of sibling (neighboring) items.

The default Z-value is 0.

Sets the Z-value of the item to z. The Z value decides the stacking order of sibling (neighboring) items. A sibling item of high Z value will always be drawn on top of another sibling item with a lower Z value.

If you restore the Z value, the item's insertion order will decide its stacking order.

The Z-value does not affect the item's size in any way.

The default Z-value is 0.