plugins path [gelöst]

Alles rund um die Programmierung mit Qt
Antworten
Curtis Newton
Beiträge: 122
Registriert: 11. Juni 2008 18:39

plugins path [gelöst]

Beitrag 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.
Curtis Newton
Beiträge: 122
Registriert: 11. Juni 2008 18:39

Beitrag 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.
Antworten