diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-08-12 12:45:19 +0200 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-08-18 15:33:43 +0200 |
| commit | 97eba34c65ca7f9f31eeb14f00a095a541b8f860 (patch) | |
| tree | 5165993fa3b6789c0b653a5e8641182c5d7da04e /src/widgets/doc/snippets/qtablewidget-using/main.cpp | |
| parent | 4cf2f0b7ba557176a2ea051c0b84b786b7fd2d6a (diff) | |
Update byte-ordered QPixelFormats to be QPixelFormat::BigEndian
If a byte-ordered format is read in larger chunks, such as when passing
a 32-bit format to platform APIs as a single integer, the interpretation
of the bytes needs to be in big endian.
Reflect this though the built in pixel formats for QImage formats,
as well as the default behavior of the QPixelFormat constructors
and factory functions.
Also clarify this in the documentation.
[ChangeLog][QtGui] QPixelFormats with typeInterpretation()
QPixelFormat::UnsignedByte now reflect a byteOrder of
QPixelFormat::BigEndian, to highlight the fact that these
formats need to be read as such if not read in a byte-by-byte
manner.
Change-Id: I03baee3a50e7c7d94bc309933e00566653d42de6
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/qtablewidget-using/main.cpp')
0 files changed, 0 insertions, 0 deletions
