Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7.2, 6.8.0 Beta1
-
None
-
MacOS Sonoma 14.5
-
-
929698e7f (dev), 3158a940d (6.8), 321566cf1 (6.7)
Description
Qt 6.7.2 works for most heic files, but not the basic version attached. Prior Qt versions do work.
Minimal test example (files included):
minimalimageviewer.pro
QT = core widgets SOURCES += main.cpp
main.cpp
#include <QtWidgets/QtWidgets> int main(int argc, char *argv[]) { QApplication app(argc, argv); QString path = "/Users/roryhill/Pictures/_ThumbTest/notworking/Heic1.heic"; QImage image(path); QLabel label; if (image.isNull()) { label.setText("Failed to load " + path); label.setFixedSize(QSize(800, 200)); } else { label.setPixmap(QPixmap::fromImage(image)); label.setFixedSize(image.size()); } QString qtVersion = QT_VERSION_STR; label.setWindowTitle("HEIC Image Viewer Qt Version " + qtVersion); label.setAlignment(Qt::AlignCenter); label.show(); return app.exec(); }
SAMPLE OUTPUT: 1st from Qt 6.7.1, then Qt 6.7.2