Unknown module(s) in QT: imageformats
-
My Qt development environment is
Qt Creator 4.14.0 Based on Qt 5.15.2 (MSVC 2019, 64 bit)
i included like this in .pro
QT += imageformats
But result is:
Unknown module(s) in QT: imageformats
How can I resolve it?
-
@MyNameIsQt said in Unknown module(s) in QT: imageformats:
I'm making a program that converts images to webp and saves them as binaries. You need a module that can process webp images.
https://doc.qt.io/qt-6/qtimageformats-index.htmlSo, you wrote that you use Qt5 but post link to Qt 6? What Qt version you are using now? At Qt6 you need to install the module with the Maintenance Tool. Did you do that?
-
@MyNameIsQt what is imageformats, and why did you include it?
-
@MyNameIsQt The error message says it all; there is no Qt module called "imageformats". You resolve the message by removing the offending text.
There is a set of run-time plugins in a folder called "imageformats". These are loaded at run time if present.
-
@Abderrahmene_Rayene
I'm making a program that converts images to webp and saves them as binaries. You need a module that can process webp images.
https://doc.qt.io/qt-6/qtimageformats-index.html -
@MyNameIsQt Do you know where imageformats is located?
I read that its default path is QTDIR/plugins (where QTDIR is the directory where Qt is installed). -
@MyNameIsQt said in Unknown module(s) in QT: imageformats:
I'm making a program that converts images to webp and saves them as binaries. You need a module that can process webp images.
https://doc.qt.io/qt-6/qtimageformats-index.htmlSo, you wrote that you use Qt5 but post link to Qt 6? What Qt version you are using now? At Qt6 you need to install the module with the Maintenance Tool. Did you do that?
-
@MECoder Are you referring to the uninstall qt tool? So what modules do I need?
I installed version 6.4, but when I installed qt4, it didn't compile due to compatibility issues between installed compiler and qt version. So I deleted 6.4. I am a beginner in qt. thank you -
@MyNameIsQt You need to install Qt 6.4 along with image formats module.
And why are you trying to use qt4 (which is Qt version 4)? It's not compatible with your compiler.
-