Kylin/Fluent/FpsItem.h

19 lines
272 B
C
Raw Normal View History

2024-08-31 12:32:26 +08:00
#ifndef __FPSITEM_H__
#define __FPSITEM_H__
#include "Utilities.h"
#include <QQuickItem>
class FpsItem : public QQuickItem {
Q_OBJECT
QML_ELEMENT
Q_PROPERTY_AUTO(int, fps)
public:
FpsItem();
private:
int _frameCount = 0;
};
#endif // __FPSITEM_H__