diff --git a/src/imageformats/avif.cpp b/src/imageformats/avif.cpp index abc4d3d..7abbcdf 100644 --- a/src/imageformats/avif.cpp +++ b/src/imageformats/avif.cpp @@ -508,12 +508,21 @@ bool QAVIFHandler::decode_one_frame() #else switch (m_decoder->image->imir.axis) { #endif +#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0) case 0: // top-to-bottom result = result.mirrored(false, true); break; case 1: // left-to-right result = result.mirrored(true, false); break; +#else + case 0: // top-to-bottom + result = result.flipped(Qt::Vertical); + break; + case 1: // left-to-right + result = result.flipped(Qt::Horizontal); + break; +#endif } }