1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-19 20:22:56 +08:00
2020-07-05 02:12:59 +08:00

34 lines
657 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <QQuickView>
//无边框窗口支持拖动和改变大小支持Windows平台Aero效果
class TaoView : public QQuickView
{
Q_OBJECT
using Super = QQuickView;
Q_PROPERTY(bool isMax READ isMax NOTIFY isMaxChanged)
public:
explicit TaoView(QWindow *parent = nullptr);
~TaoView();
void moveToScreenCenter();
bool isMax() const
{
return m_isMax;
}
public slots:
void setIsMax(bool isMax);
signals:
void isMaxChanged(bool isMax);
protected:
#if WIN32
bool nativeEvent(const QByteArray &eventType, void *message, long *result) override;
#endif
private:
bool m_isMax;
};