QApplication app(argc,argv);QApplication::addLibraryPath(app.applicationDirPath() + "/plugins/");
[Path]Plugins = plugins
QPixmap pix;pix.load("picture.jpg");m_picture = new QLabel;m_picture->resize(600, 400);m_picture->setFrameStyle(QFrame::Panel|QFrame::Raised);m_picture->setPixmap(pix.scaled(QSize(600,400)));
configure -platform win32-msvc2008 -shared -qt-sql-odbc -qt-sql-sqlite -no-qt3support -no-opengl -no-phonon -qt-style-windowsxp
void checkPlugins(){ QList<QByteArray> formats = QImageReader::supportedImageFormats(); if ( !formats.contains("def") || !formats.contains("pcx" )) { QMessageBox::critical(NULL, "Critical error!", "Plugins didn't load. Files maybe corrupted. Try to re-install application."); exit(1); }}