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
qtliterals.qdoc
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \namespace QtLiterals
6 \inmodule QtCore
7
8 \brief The QtLiterals namespace declares literal operators for Qt types.
9*/
10
11/*!
12 \namespace Qt::Literals
13 \inmodule QtCore
14 \inheaderfile QString
15
16 \brief The Literals inline namespace declares literal operators for Qt types.
17*/
18
19/*!
20 \namespace Qt::Literals::StringLiterals
21 \inmodule QtCore
22 \inheaderfile QString
23
24 \brief The StringLiterals namespace declares string literal operators
25 for Qt types.
26
27 The inline Qt::Literals::StringLiterals namespace declares string literal
28 operators for Qt types. Because both \c Literals and \c StringLiterals
29 namespaces are declared as inline, the symbols from this namespace can be
30 accessed by adding one of the following to your code:
31
32 \code
33 // Makes visible only the literal operators declared in StringLiterals
34 using namespace Qt::Literals::StringLiterals;
35
36 // Makes visible literal operators declared in all inline namespaces
37 // inside Literals
38 using namespace Qt::Literals;
39
40 // Makes visible all symbols (including all literal operators) declared
41 // in the Qt namespace
42 using namespace Qt;
43 \endcode
44*/