Translating supportedDocumentFormats() into string for saveFileDialog
-
wrote on 2 Jan 2012, 04:02 last edited by
How do you all translate from the list returned by @ QTextDocumentWriter::supportedDocumentFormats();@ for use with a [[Doc:QFileDialog]]::getSaveFilename() filter list? Is the only way basically to hardcode the three available formats along with the human-readable strings and extensions, or is there a more flexible way?
-
wrote on 2 Jan 2012, 07:10 last edited by
AFAIK, there is no other way than the way you describe.
1/2