#ifndef WINDOWHELPER_H #define WINDOWHELPER_H #include #include #include #include #include "FramelessView.h" class WindowHelper : public QObject { Q_OBJECT public: explicit WindowHelper(QObject *parent = nullptr); Q_INVOKABLE void initWindow(FramelessView* window); Q_INVOKABLE void setTitle(const QString& text); Q_INVOKABLE void setMinimumSize(const QSize &size); Q_INVOKABLE void setMaximumSize(const QSize &size); Q_INVOKABLE void refreshWindow(); private: FramelessView* window; }; #endif // WINDOWHELPER_H