summaryrefslogtreecommitdiffstats
path: root/src/dbus/doc/snippets/code/src_qdbus_qdbusmetatype.cpp
blob: c9e5281cdb57a75e33dac1ce69d4bd355ed3f9e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#include <QtCore/qlist.h>
typedef QList<QString> MyClass;

//! [0-0]
#include <QDBusMetaType>
//! [0-0]
void dbus() {
//! [0-1]
qDBusRegisterMetaType<MyClass>();
//! [0-1]
}