42 #ifndef QDECLARATIVEITEM_H 43 #define QDECLARATIVEITEM_H 45 #include <QtDeclarative/qdeclarative.h> 46 #include <QtDeclarative/qdeclarativecomponent.h> 48 #include <QtCore/QObject> 49 #include <QtCore/QList> 50 #include <QtGui/qgraphicsitem.h> 51 #include <QtGui/qgraphicstransform.h> 52 #include <QtGui/qfont.h> 53 #include <QtGui/qaction.h> 119 qreal baselineOffset()
const;
120 void setBaselineOffset(
qreal);
125 void setWidth(
qreal);
127 qreal implicitWidth()
const;
129 qreal height()
const;
130 void setHeight(
qreal);
132 qreal implicitHeight()
const;
134 void setSize(
const QSizeF &size);
140 void setSmooth(
bool);
145 bool hasActiveFocus()
const;
149 bool keepMouseGrab()
const;
150 void setKeepMouseGrab(
bool);
158 void childrenRectChanged(
const QRectF &);
159 void baselineOffsetChanged(
qreal);
160 void stateChanged(
const QString &);
161 void focusChanged(
bool);
162 void activeFocusChanged(
bool);
165 void smoothChanged(
bool);
166 void clipChanged(
bool);
167 Q_REVISION(1) void implicitWidthChanged();
168 Q_REVISION(1)
void implicitHeightChanged();
171 bool isComponentComplete() const;
172 virtual
bool sceneEvent(
QEvent *);
173 virtual
bool event(QEvent *);
176 void setImplicitWidth(
qreal);
177 bool widthValid() const;
178 void setImplicitHeight(qreal);
179 bool heightValid() const;
181 virtual
void classBegin();
182 virtual
void componentComplete();
184 virtual
void keyReleaseEvent(
QKeyEvent *event);
188 void keyReleasePreHandler(QKeyEvent *);
189 void inputMethodPreHandler(QInputMethodEvent *);
191 virtual
void geometryChanged(const
QRectF &newGeometry,
192 const
QRectF &oldGeometry);
218 #ifndef QT_NO_DEBUG_STREAM 234 #endif // QDECLARATIVEITEM_H The QVariant class acts like a union for the most common Qt data types.
The QPainter class performs low-level painting on widgets and other paint devices.
The QDebug class provides an output stream for debugging information.
bool hasFocus() const
Returns true if this item is active, and it or its focus proxy has keyboard input focus; otherwise...
The QKeyEvent class describes a key event.
#define Q_CLASSINFO(name, value)
This macro associates extra information to the class, which is available using QObject::metaObject()...
#define QT_END_NAMESPACE
This macro expands to.
#define Q_PRIVATE_PROPERTY(d, define Q_REVISION(v)
#define QML_DECLARE_TYPE(TYPE)
QPointF mapFromItem(const QGraphicsItem *item, const QPointF &point) const
Maps the point point, which is in item's coordinate system, to this item's coordinate system...
QTransform transform() const
Returns this item's transformation matrix.
void setParentItem(QGraphicsItem *parent)
Sets this item's parent item to newParent.
The QPointF class defines a point in the plane using floating point precision.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
T qobject_cast(QGraphicsObject *o)
GraphicsItemChange
This enum describes the state changes that are notified by QGraphicsItem::itemChange().
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
QDebug Q_DECLARATIVE_EXPORT operator<<(QDebug debug, QDeclarativeItem *item)
The QSizeF class defines the size of a two-dimensional object using floating point precision...
The QGraphicsScale class provides a scale transformation.
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
static void setClip(QPainter *painter, QGraphicsItem *item)
static const QRectF boundingRect(const QPointF *points, int pointCount)
QGraphicsObject * toGraphicsObject()
Return the graphics item cast to a QGraphicsObject, if the class is actually a graphics object...
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QDeclarativeItem class provides the most basic of all visual items in QML.
void parentChanged()
This signal gets emitted whenever the parent of the item changes.
The QDeclarativeParserStatus class provides updates on the QML parser state.
static const char * data(const QByteArray &arr)
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
#define Q_DECLARATIVE_EXPORT
QPointF mapToItem(const QGraphicsItem *item, const QPointF &point) const
Maps the point point, which is in this item's coordinate system, to item's coordinate system...
QGraphicsItem * parentItem() const
Returns a pointer to this item's parent item.
TransformOrigin
Controls the point about which simple transforms like scale apply.
#define Q_INTERFACES(x)
This macro tells Qt which interfaces the class implements.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)=0
This function, which is usually called by QGraphicsView, paints the contents of an item in local coor...
The QGraphicsRotation class provides a rotation transformation around a given axis.
The QGraphicsObject class provides a base class for all graphics items that require signals...
The QEvent class is the base class of all event classes.
Q_CORE_EXPORT QTextStream & left(QTextStream &s)
The QScriptValue class acts as a container for the Qt Script data types.
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem...
The QDeclarativeListProperty class allows applications to expose list-like properties to QML...
The QAction class provides an abstract user interface action that can be inserted into widgets...
void setFocus(Qt::FocusReason focusReason=Qt::OtherFocusReason)
Gives keyboard input focus to this item.