Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmlobjectorgadget_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQMLOBJECTORGADGET_P_H
5#define QQMLOBJECTORGADGET_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qqmlmetaobject_p.h>
19#include <private/qbipointer_p.h>
20
22
24{
25public:
28 ptr(obj)
29 {}
32 , ptr(gadget)
33 {}
36 {}
37
38 void metacall(QMetaObject::Call type, int index, void **argv) const;
39
40 bool isNull() const { return ptr.isNull(); }
41 QObject *qObject() const { return ptr.isT1() ? ptr.asT1() : nullptr; }
42
43private:
45};
46
48
49#endif // QQMLOBJECTORGADGET_P_H
T * asT1() const
bool isNull() const
bool isT1() const
\inmodule QtCore
Definition qobject.h:90
const QMetaObject * metaObject() const
void metacall(QMetaObject::Call type, int index, void **argv) const
QQmlObjectOrGadget(const QMetaObject *metaObject)
QQmlObjectOrGadget(QObject *obj)
QQmlObjectOrGadget(const QMetaObject *metaObject, void *gadget)
QObject * qObject() const
Combined button and popup list for selecting options.
GLuint index
[2]
GLenum type
GLhandleARB obj
[2]
\inmodule QtCore