aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_static_qml_module/MyElement.h
blob: 118606aa33c40f9e1df4d128f77002567189a7c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#pragma once

#include <QObject>
#include <QtQml>

class MyElement : public QObject
{
    Q_OBJECT
    QML_ELEMENT
    Q_PROPERTY(QString someProp MEMBER m_someProp)
public:
    MyElement() = default;
    ~MyElement() = default;

private:
    QString m_someProp;
};