cia.michele
27th May 2013, 17:01
Hello to everybody :)
I'm a newbie with Qt and I've a small problem!
I'd show an animated Gif on my QDialog: I saw that I need QMovie, so I can run the animation. So I've write this:
QMovie *movie = new QMovie(":/Immagini/bar.gif");
All run good on my development machine, but If I move my executable I don't see the image!!
I search about it, and I find that I need to port the qgif4.dll plugin, so, how can I do this?
I know a code to use an SQLPlugin, as:
QPluginLoader loader("qsqlodbc4.dll");
QObject *plugin = loader.instance();
if (!plugin)
return;
QSqlDriverPlugin *sqlPlugin = qobject_cast<QSqlDriverPlugin *>(plugin);
if (!sqlPlugin ) {
QMessageBox::warning(0, "SQL plugin", "Loading failed", QMessageBox::Ok);
}
db = QSqlDatabase::addDatabase(sqlPlugin->create("QODBC"));
Is there any similar code? Which is the PluginClas? QImageIOPlugin? How can I use it?
Thanks a lot for your time.
Michele
I'm a newbie with Qt and I've a small problem!
I'd show an animated Gif on my QDialog: I saw that I need QMovie, so I can run the animation. So I've write this:
QMovie *movie = new QMovie(":/Immagini/bar.gif");
All run good on my development machine, but If I move my executable I don't see the image!!
I search about it, and I find that I need to port the qgif4.dll plugin, so, how can I do this?
I know a code to use an SQLPlugin, as:
QPluginLoader loader("qsqlodbc4.dll");
QObject *plugin = loader.instance();
if (!plugin)
return;
QSqlDriverPlugin *sqlPlugin = qobject_cast<QSqlDriverPlugin *>(plugin);
if (!sqlPlugin ) {
QMessageBox::warning(0, "SQL plugin", "Loading failed", QMessageBox::Ok);
}
db = QSqlDatabase::addDatabase(sqlPlugin->create("QODBC"));
Is there any similar code? Which is the PluginClas? QImageIOPlugin? How can I use it?
Thanks a lot for your time.
Michele