Qt Embedded webkit can not display jpeg and gif?
-
Hi,
I am cross-compiling Qt Embedded 4.7.3, but the demo browser can not display jpeg and gif, only pngs can work.
i have added the following config options:
-qt-gif, -qt-libjpeg.Could somebody explain me what are the requirements to get jpeg and gif with
Qt/WebKit, and maybe how it is supposed to work?s -
Never tried embedded but I think that like on desktop one you need plugins for imageformats.
-
i have copied the whole plugins directory to the application's directory~
and write a qt.conf like as follow:
[Paths]
Prefix = ./
Libraries = lib
Plugins = pluginsstill can not display jpeg.
do i need to add something to the app's .pro file when building it? -
Nope. Nothing is needed in .pro. Maybe something with linking specifics at embedded systems, not sure.
-
-
you have to copy the plugins directory to the target device
(as you correctly described) -
you have to add a new pluginspath to your qApp->addLibraryPath(qApp->applicationDirPath()+"/plugins")
-