Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | Friends | Related Functions

DemoScene Class Reference

Inheritance diagram for DemoScene:
Inheritance graph
[legend]
Collaboration diagram for DemoScene:
Collaboration graph
[legend]

List of all members.

Public Types

enum  ItemIndexMethod { BspTreeIndex, NoIndex = -1 }
enum  SceneLayer { ItemLayer = 0x1, BackgroundLayer = 0x2, ForegroundLayer = 0x4, AllLayers = 0xffff }

Public Slots

void advance ()
void clear ()
void clearSelection ()
void deleteLater ()
void invalidate (const QRectF &rect=QRectF(), SceneLayers layers=AllLayers)
void update (const QRectF &rect=QRectF())

Signals

void changed (const QList< QRectF > &region)
void destroyed (QObject *=0)
void sceneRectChanged (const QRectF &rect)
void selectionChanged ()

Public Member Functions

QGraphicsWidgetactiveWindow () const
QGraphicsEllipseItemaddEllipse (const QRectF &rect, const QPen &pen=QPen(), const QBrush &brush=QBrush())
QGraphicsEllipseItemaddEllipse (qreal x, qreal y, qreal w, qreal h, const QPen &pen=QPen(), const QBrush &brush=QBrush())
void addItem (QGraphicsItem *item)
QGraphicsLineItemaddLine (const QLineF &line, const QPen &pen=QPen())
QGraphicsLineItemaddLine (qreal x1, qreal y1, qreal x2, qreal y2, const QPen &pen=QPen())
QGraphicsPathItemaddPath (const QPainterPath &path, const QPen &pen=QPen(), const QBrush &brush=QBrush())
QGraphicsPixmapItemaddPixmap (const QPixmap &pixmap)
QGraphicsPolygonItemaddPolygon (const QPolygonF &polygon, const QPen &pen=QPen(), const QBrush &brush=QBrush())
QGraphicsRectItemaddRect (const QRectF &rect, const QPen &pen=QPen(), const QBrush &brush=QBrush())
QGraphicsRectItemaddRect (qreal x, qreal y, qreal w, qreal h, const QPen &pen=QPen(), const QBrush &brush=QBrush())
QGraphicsSimpleTextItemaddSimpleText (const QString &text, const QFont &font=QFont())
QGraphicsTextItemaddText (const QString &text, const QFont &font=QFont())
QGraphicsProxyWidgetaddWidget (QWidget *widget, Qt::WindowFlags wFlags=0)
QBrush backgroundBrush () const
bool blockSignals (bool b)
int bspTreeDepth () const
const QObjectListchildren () const
void clearFocus ()
QList< QGraphicsItem * > collidingItems (const QGraphicsItem *item, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
QGraphicsItemGroupcreateItemGroup (const QList< QGraphicsItem * > &items)
 DemoScene (QObject *parent)
void destroyItemGroup (QGraphicsItemGroup *group)
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
bool disconnect (const QObject *receiver, const char *member=0)
void dumpObjectInfo ()
void dumpObjectTree ()
QList< QByteArraydynamicPropertyNames () const
template<typename T >
findChild (const QString &aName=QString()) const
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
template<typename T >
QList< T > findChildren (const QRegExp &re) const
QGraphicsItemfocusItem () const
QFont font () const
QBrush foregroundBrush () const
bool hasFocus () const
qreal height () const
bool inherits (const char *classname) const
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const
void installEventFilter (QObject *)
void invalidate (qreal x, qreal y, qreal w, qreal h, SceneLayers layers=AllLayers)
bool isSortCacheEnabled () const
bool isWidgetType () const
QGraphicsItemitemAt (const QPointF &pos) const
QGraphicsItemitemAt (qreal x, qreal y) const
ItemIndexMethod itemIndexMethod () const
QList< QGraphicsItem * > items () const
QList< QGraphicsItem * > items (const QPointF &pos) const
QList< QGraphicsItem * > items (const QRectF &rect, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
QList< QGraphicsItem * > items (const QPolygonF &polygon, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
QList< QGraphicsItem * > items (const QPainterPath &path, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
QList< QGraphicsItem * > items (qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
QRectF itemsBoundingRect () const
void killTimer (int id)
QGraphicsItemmouseGrabberItem () const
void moveToThread (QThread *thread)
QString objectName () const
QPalette palette () const
QObjectparent () const
QVariant property (const char *name) const
void removeEventFilter (QObject *)
void removeItem (QGraphicsItem *item)
void render (QPainter *painter, const QRectF &target=QRectF(), const QRectF &source=QRectF(), Qt::AspectRatioMode aspectRatioMode=Qt::KeepAspectRatio)
QRectF sceneRect () const
QList< QGraphicsItem * > selectedItems () const
QPainterPath selectionArea () const
void setActiveWindow (QGraphicsWidget *widget)
void setBackgroundBrush (const QBrush &brush)
void setBspTreeDepth (int depth)
void setFocus (Qt::FocusReason focusReason=Qt::OtherFocusReason)
void setFocusItem (QGraphicsItem *item, Qt::FocusReason focusReason=Qt::OtherFocusReason)
void setFont (const QFont &font)
void setForegroundBrush (const QBrush &brush)
void setItemIndexMethod (ItemIndexMethod method)
void setObjectName (const QString &name)
void setPalette (const QPalette &palette)
void setParent (QObject *)
bool setProperty (const char *name, const QVariant &value)
void setSceneRect (const QRectF &rect)
void setSceneRect (qreal x, qreal y, qreal w, qreal h)
void setSelectionArea (const QPainterPath &path, Qt::ItemSelectionMode)
void setSelectionArea (const QPainterPath &path)
void setSortCacheEnabled (bool enabled)
void setStickyFocus (bool enabled)
void setStyle (QStyle *style)
void setUserData (uint id, QObjectUserData *data)
bool signalsBlocked () const
int startTimer (int interval)
bool stickyFocus () const
QStylestyle () const
QThreadthread () const
void update (qreal x, qreal y, qreal w, qreal h)
QObjectUserDatauserData (uint id) const
QList< QGraphicsView * > views () const
qreal width () const

Static Public Member Functions

static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
static uint registerUserData ()

Protected Slots

bool focusNextPrevChild (bool next)

Protected Member Functions

virtual void childEvent (QChildEvent *)
virtual void connectNotify (const char *signal)
virtual void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
virtual void customEvent (QEvent *)
virtual void disconnectNotify (const char *signal)
virtual void dragEnterEvent (QGraphicsSceneDragDropEvent *event)
virtual void dragLeaveEvent (QGraphicsSceneDragDropEvent *event)
virtual void dragMoveEvent (QGraphicsSceneDragDropEvent *event)
virtual void drawBackground (QPainter *painter, const QRectF &rect)
virtual void drawForeground (QPainter *painter, const QRectF &rect)
void drawItems (QPainter *painter, int numItems, QGraphicsItem *items[], const QStyleOptionGraphicsItem options[], QWidget *widget)
virtual void dropEvent (QGraphicsSceneDragDropEvent *event)
bool event (QEvent *event)
bool eventFilter (QObject *watched, QEvent *event)
virtual void focusInEvent (QFocusEvent *event)
virtual void focusOutEvent (QFocusEvent *event)
virtual void helpEvent (QGraphicsSceneHelpEvent *event)
virtual void inputMethodEvent (QInputMethodEvent *event)
virtual void keyPressEvent (QKeyEvent *event)
virtual void keyReleaseEvent (QKeyEvent *event)
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
int receivers (const char *signal) const
QObjectsender () const
virtual void timerEvent (QTimerEvent *)
virtual void wheelEvent (QGraphicsSceneWheelEvent *event)

Protected Attributes

QObjectDatad_ptr

Static Protected Attributes

static const QMetaObject staticQtMetaObject

Properties

QBrush backgroundBrush
 the background brush of the scene.
int bspTreeDepth
 the depth of QGraphicsScene's BSP index tree
QFont font
 the scene's default font
QBrush foregroundBrush
 the foreground brush of the scene.
ItemIndexMethod itemIndexMethod
 the item indexing method.
QString objectName
 the name of this object
QPalette palette
 the scene's default palette
QRectF sceneRect
 the scene rectangle; the bounding rectangle of the scene
bool sortCacheEnabled
 whether sort caching is enabled
bool stickyFocus
 whether or not clicking the scene will clear focus

Friends

class QApplication
class QApplicationPrivate
class QCoreApplication
class QCoreApplicationPrivate
struct QMetaObject
class QThreadData
class QWidget

Related Functions

(Note that these are not member functions.)


qFindChild (const QObject *obj, const QString &name)
qFindChildqFindChildren (const QObject *obj, const QString &name=QString(), T dummy=0)()
QList< T > qFindChildren (const QObject *obj, const QString &name)
QList< T > qFindChildrenqFindChildren (const QObject *obj, const QRegExp &regExp)()
QList< T > qFindChildrenqFindChildren (const QObject *obj, const QString &name=QString(), T dummy=0)()
T * qobject_cast (QObject *object)
 QObjectList
void * qt_find_obj_child (QObject *parent, const char *type, const QString &name)

Detailed Description

Definition at line 47 of file demoscene.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index