title: loading standard qt plugins MANUALLY and dynamically
body: <p>Can anyone please give an example of HOW TO LOAD qjpeg or any other standard QT plugin manually. Please give a CODE EXAMPLE, Not a link to qt pages because I already know the following facts:</p>
  
  <ol>
  <li>I am not linking qt as static lib.</li>
  <li>I know how to deploy standard qt plugins (this is the automatic part)
  2.1. for qjpeg you copy qjpeg4.dll to ./imageformats/qjpeg4.dll as . being the base dir
      of your app.
  but I want to load and use qjpeg lib.</li>
  </ol>
  
  <p>as in</p>
  
  <pre><code>QPluginLoader loader("qjpeg4.dll");
  if (loader.instance()) {
      cout &lt;&lt; "ok" &lt;&lt; endl;
  } else {
      cout &lt;&lt; "fail" &lt;&lt; endl &lt;&lt; loader.errorString().toStdString() &lt;&lt; endl;
  }
  
  
  QList&lt;QByteArray&gt; list = QImageReader::supportedImageFormats();
  for (int i = 0; i &lt; list.size(); ++i) {
      f &lt;&lt; list.at(i).constData() &lt;&lt; std::endl;
  }
  </code></pre>
  
  <p>this does not print jpg and jpg images cannot be read and written. Maybe if someone adds something more here it will work. or maybe I am copletely wrong.</p>