QSpriteSheet Class



  • sprites : QVector<QSpriteSheetItem *>

Public Functions

QSpriteSheet(Qt3DCore::QNode *parent = nullptr)
QSpriteSheetItem *addSprite(int x, int y, int width, int height)
void addSprite(QSpriteSheetItem *sprite)
void removeSprite(QSpriteSheetItem *sprite)
QVector<QSpriteSheetItem *> sprites() const

Public Slots

void setSprites(QVector<QSpriteSheetItem *> sprites)


void spritesChanged(QVector<QSpriteSheetItem *> sprites)

Additional Inherited Members

  • 11 static public members inherited from QObject
  • 2 protected functions inherited from Qt3DCore::QNode
  • 9 protected functions inherited from QObject

Property Documentation

sprites : QVector<QSpriteSheetItem *>

Access functions:

QVector<QSpriteSheetItem *> sprites() const
void setSprites(QVector<QSpriteSheetItem *> sprites)

Notifier signal:

void spritesChanged(QVector<QSpriteSheetItem *> sprites)

Member Function Documentation

QSpriteSheet::QSpriteSheet(Qt3DCore::QNode *parent = nullptr)

Default constructs an instance of QSpriteSheet.


Destroys the instance of QSpriteSheet.

QSpriteSheetItem *QSpriteSheet::addSprite(int x, int y, int width, int height)

void QSpriteSheet::addSprite(QSpriteSheetItem *sprite)

void QSpriteSheet::removeSprite(QSpriteSheetItem *sprite)

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.