Translating supportedDocumentFormats() into string for saveFileDialog
-
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?
-
AFAIK, there is no other way than the way you describe.