.jpeg / .jpg not displaying in CLion
Unsolved
General and Desktop
-
Windows10, Clion, Qt 6.8.1 (also tried 6.6.1), mingw_64
I am trying to display images inside listWidget. .png files are displayed properly, .jpg files are just ignored.
I recretaed it in Qt Creator where it works.What i am trying to do:
auto *item = new QListWidgetItem(QIcon(filePath), filePath); item->setData(Qt::UserRole, filePath); ui->listWidget->addItem(item);
Moving images, dlls, and /imageformats into the working directory/the plugins folder did not help, even though QImageReader::supportedImageFormats() returns the following:
Supported image formats: "bmp, cur, gif, icns, ico, jfif, jpeg, jpg, pbm, pgm, png, ppm, tga, tif, tiff, wbmp, webp, xb m, xpm"
-
Hi and welcome to devnet,
I haven't used CLion yet but I found this tutorial from their documentation. Did you follow it ?