I want to save a screenshot of a widget in Qt. I created the following code that should work:
QWidget* activeWidget = getActiveWidget();//a function that retur
In this answer and this forum post, people suggest the following:
Most likely, the plugin which is required to handle .jpg files is not found by your application. In order to resolve this issue, do one of the following things:
QTPLUGIN += qjpeg
to your .pro file orimageformats
folder from %QTDIR%\plugins
next to your .exe