Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qwidgetsvariant.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 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#include "qvariant.h"
5
6#include "qsizepolicy.h"
7#include "qwidget.h"
8
9#include <private/qmetatype_p.h>
10
12
13namespace {
14
15static const struct : QMetaTypeModuleHelper
16{
17 const QtPrivate::QMetaTypeInterface *interfaceForType(int type) const override {
18 switch (type) {
20 default: return nullptr;
21 }
22 }
23} qVariantWidgetsHelper;
24
25
26#undef QT_IMPL_METATYPEINTERFACE_WIDGETS_TYPES
27
28} // namespace
29
31{
32 qMetaTypeWidgetsHelper = &qVariantWidgetsHelper;
33}
35
Combined button and popup list for selecting options.
Q_CONSTRUCTOR_FUNCTION(initializeStandardUserDefaults)
Q_CONSTINIT Q_CORE_EXPORT const QMetaTypeModuleHelper * qMetaTypeWidgetsHelper
static const QtPrivate::QMetaTypeInterface * interfaceForType(int typeId)
#define QT_FOR_EACH_STATIC_WIDGETS_CLASS(F)
Definition qmetatype.h:172
#define QT_METATYPE_CONVERT_ID_TO_TYPE(MetaTypeName, MetaTypeId, RealName)
GLenum type
void qRegisterWidgetsVariant()