summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/snippets/qmetaobject-invokable/window.h
blob: 13ab49a6afbf69077d6c673e38b1e75f98eb4fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef WINDOW_H
#define WINDOW_H

#include <QWidget>

//! [Window class with invokable method]
class Window : public QWidget
{
    Q_OBJECT

public:
    Window();
    void normalMethod();
    Q_INVOKABLE void invokableMethod();
};
//! [Window class with invokable method]

#endif