Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Translating supportedDocumentFormats() into string for saveFileDialog

Translating supportedDocumentFormats() into string for saveFileDialog

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris H
    wrote on 2 Jan 2012, 04:02 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on 2 Jan 2012, 07:10 last edited by
      #2

      AFAIK, there is no other way than the way you describe.

      1 Reply Last reply
      0

      1/2

      2 Jan 2012, 04:02

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved