plugins path [gelöst]
Verfasst: 6. Oktober 2009 12:45
Hallo,
ich will in meinem Programm auch gifs und jpegs laden können. Dazu ersstelle ich einen QFileDialog mit diesen Filetypes:
Auf meinen Entwicklungsrechner mit einer qt-Installation klappt das auch. Auf einen anderen Rechner (ohne qt-Installation) nicht. Obwohl ich dort, wo die exe liegt, einen Ordner plugins\imageformats mit den dll's hingepackt habe.
Was mache ich falsch? Laut Doku wird "The directory of the application executable" immer automatisch zum Library path hinzugefügt.
C.
ich will in meinem Programm auch gifs und jpegs laden können. Dazu ersstelle ich einen QFileDialog mit diesen Filetypes:
Code: Alles auswählen
QString fileFormats = "(";
/* Get all inputformats */
for (int i = 0; i < QImageReader::supportedImageFormats().count(); i++) {
fileFormats += "*."; /* Insert wildcard */
fileFormats
+= QString(QImageReader::supportedImageFormats().at(i)).toLower(); /* Insert the format */
fileFormats += " "; /* Insert a space */
}
fileFormats += ")";
Was mache ich falsch? Laut Doku wird "The directory of the application executable" immer automatisch zum Library path hinzugefügt.
C.