Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmlnetworkinformation.cpp
Go to the documentation of this file.
1// Copyright (C) 2023 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
5
7
9{
10 static QNetworkInformation *s_singletonInstance = []() {
13
14 Q_ASSERT(singletonInstance);
16 return singletonInstance;
17 }();
18
19 return s_singletonInstance;
20}
21
23
24#include "moc_qqmlnetworkinformation_p.cpp"
The QJSEngine class provides an environment for evaluating JavaScript code.
Definition qjsengine.h:26
static void setObjectOwnership(QObject *, ObjectOwnership)
Sets the ownership of object.
\inmodule QtNetwork
static QNetworkInformation * instance()
Returns a pointer to the instance of the QNetworkInformation, if any.
The QQmlEngine class provides an environment for instantiating QML components.
Definition qqmlengine.h:57
Combined button and popup list for selecting options.
#define Q_ASSERT(cond)
Definition qrandom.cpp:47
static QNetworkInformation * create(QQmlEngine *, QJSEngine *)