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
applicationdata.h
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
#include <QObject>
4
#include <QDateTime>
5
7
class
ApplicationData
:
public
QObject
8
{
9
Q_OBJECT
10
public
:
11
Q_INVOKABLE
QDateTime
getCurrentDateTime
()
const
{
12
return
QDateTime::currentDateTime
();
13
}
14
};
ApplicationData
[0]
Definition
applicationdata.h:8
ApplicationData::getCurrentDateTime
Q_INVOKABLE QDateTime getCurrentDateTime() const
Definition
applicationdata.h:11
QDateTime
\inmodule QtCore\reentrant
Definition
qdatetime.h:283
QDateTime::currentDateTime
static QDateTime currentDateTime()
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition
qdatetime.cpp:5305
QObject
\inmodule QtCore
Definition
qobject.h:103
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_INVOKABLE
#define Q_INVOKABLE
Definition
qtmetamacros.h:76
qtdeclarative
src
qml
doc
snippets
qml
qtbinding
context-advanced
applicationdata.h
Generated by
1.10.0