QtCanpool 3.3.0
载入中...
搜索中...
未找到
windowagentbase.h
浏览该文件的文档.
1
5#ifndef WINDOWAGENTBASE_H
6#define WINDOWAGENTBASE_H
7
8#include "qxwindow_global.h"
9#include <QtCore/QObject>
10
12
13class WindowAgentBasePrivate;
14
15class QX_WINDOW_EXPORT WindowAgentBase : public QObject
16{
17 Q_OBJECT
18 Q_DECLARE_PRIVATE(WindowAgentBase)
19public:
20 ~WindowAgentBase() override;
21
30 Q_ENUM(SystemButton)
31
32 QVariant windowAttribute(const QString &key) const;
33 Q_INVOKABLE bool setWindowAttribute(const QString &key, const QVariant &attribute);
34
35public Q_SLOTS:
36 void showSystemMenu(const QPoint &pos); // Only available on Windows now
37 void centralize();
38 void raise();
39protected:
40 explicit WindowAgentBase(WindowAgentBasePrivate &d, QObject *parent = nullptr);
41
43};
44
46
47#endif // WINDOWAGENTBASE_H
WindowAgentBase is the base class of the specifiy window agent for QtWidgets and QtQuick.
WindowAgentBasePrivate * d_ptr
~WindowAgentBase() override
Destructor.
#define QX_WINDOW_END_NAMESPACE
#define QX_WINDOW_EXPORT
#define QX_WINDOW_BEGIN_NAMESPACE