QSpriteSheet Class



  • > : QVector<QSpriteSheetItem* const

Public Functions

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

Public Slots

void setSprites(QVector<Qt3DExtras::QSpriteSheetItem *> sprites)


void spritesChanged(QVector<Qt3DExtras::QSpriteSheetItem *> sprites)

Additional Inherited Members

  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 2 protected functions inherited from Qt3DCore::QNode
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Property Documentation

> : QVector<QSpriteSheetItem* const

Member Function Documentation

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

Constructs a new QSpriteSheet instance with parent object parent.

[virtual] QSpriteSheet::~QSpriteSheet()

Destroys the instance of QSpriteSheet. The destructor is virtual.

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

void QSpriteSheet::addSprite(Qt3DExtras::QSpriteSheetItem *sprite)

void QSpriteSheet::removeSprite(Qt3DExtras::QSpriteSheetItem *sprite)

[slot] void QSpriteSheet::setSprites(QVector<Qt3DExtras::QSpriteSheetItem *> sprites)

See also sprites().

QVector<Qt3DExtras::QSpriteSheetItem *> QSpriteSheet::sprites() const

See also setSprites().

[signal] void QSpriteSheet::spritesChanged(QVector<Qt3DExtras::QSpriteSheetItem *> sprites)

© 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.