From f2d83e3f850339cab043f59665a7b83f9fc7f92d Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sun, 13 Oct 2019 23:29:41 +0800 Subject: [PATCH] apply auto transform --- graphicsview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/graphicsview.cpp b/graphicsview.cpp index 6f08acf..6314cc1 100644 --- a/graphicsview.cpp +++ b/graphicsview.cpp @@ -42,6 +42,7 @@ void GraphicsView::showFromUrlList(const QList &urlList) showGif(filePath); } else { QImageReader imageReader(filePath); + imageReader.setAutoTransform(true); imageReader.setDecideFormatFromContent(true); QImage::Format imageFormat = imageReader.imageFormat(); if (imageFormat == QImage::Format_Invalid) {