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.