Literals Namespace
Qt::Literals
The Literals inline namespace declares literal operators for Qt types. More...
Header: |
#include <Literals> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: |
QT += core |
Namespaces
Detailed Description
Namespaces
namespace Literals::StringLiterals
The inline Qt::Literals::StringLiterals namespace declares string literal operators for Qt types. Because both Literals
and StringLiterals
namespaces are declared as inline, the symbols from this namespace can be accessed by adding one of the following to your code:
using namespace Qt::Literals::StringLiterals;
using namespace Qt::Literals;
using namespace Qt;