Consider below code:
static constexpr QString FOO = QStringLiteral("foo"); // erro compile , because QString has not default destructor.
How I can create QString at compile time!? is it possible to create QString at compile time?
Consider below code:
static constexpr QString FOO = QStringLiteral("foo"); // erro compile , because QString has not default destructor.
How I can create QString at compile time!? is it possible to create QString at compile time?
In Qt 6.2 you can use the new u"my string"_qs syntax. https://doc.qt.io/qt-6/qstring.html#operator-22-22_qs