Details
-
Epic
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
C++20 std::format @ Qt
Description
C++20 added a new formatting library, roughly modelled after Python's. It supports user-defined types, user-defined formatting options, char and wchar_t, argument reordering, localization, and is based on format strings.
This library impacts Qt APIs on two levels:
- enable Qt types for use with std::format
- replace our existing formatting (QString::arg(), QTest::toString(), QDebug stream operators) with std::format
- it seems to have everything we need for localisation
- except char16_t support
- but maybe there's a way to extend the library with char16_t support?
Attachments
Issue Links
- is required for
-
QTBUG-99243 Initiative: Qt and C++20
- Open
-
QTBUG-109361 C++20 is required for the development and buiding of Qt itself (Phase II)
- Open
-
QTBUG-109360 Use C++20 code with Qt (Phase I)
- Open