mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 19:20:59 +08:00
25 lines
443 B
C
25 lines
443 B
C
|
#ifndef WINDOWHELPER_H
|
|||
|
#define WINDOWHELPER_H
|
|||
|
|
|||
|
#include <QObject>
|
|||
|
#include <QQuickWindow>
|
|||
|
#include <QQuickItem>
|
|||
|
|
|||
|
class WindowHelper : public QObject, public QQmlParserStatus
|
|||
|
{
|
|||
|
Q_OBJECT
|
|||
|
|
|||
|
public:
|
|||
|
explicit WindowHelper(QObject *parent = nullptr);
|
|||
|
void classBegin() override;
|
|||
|
void componentComplete() override;
|
|||
|
|
|||
|
Q_INVOKABLE void setTitle(const QString& text);
|
|||
|
private:
|
|||
|
|
|||
|
QQuickWindow* window;
|
|||
|
|
|||
|
};
|
|||
|
|
|||
|
#endif // WINDOWHELPER_H
|