Seite 1 von 1

plugins path [gelöst]

Verfasst: 6. Oktober 2009 12:45
von Curtis Newton
Hallo,

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 += ")";
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.

Verfasst: 6. Oktober 2009 13:19
von Curtis Newton
Problem war das Update vom Studio, mit dem auch die redists (oder wie die heißen) erneuert wurden. Dann muss man doch msvcm80.dll und Konsorten nebst Microsoft.VC80.CRT.manifest ins Programmverzeichnis kopieren. Und AUCH ins plugin-Verzeichnis.


C.