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. QFileDiaolg question about extensions
Qt 6.11 is out! See what's new in the release blog

QFileDiaolg question about extensions

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 972 Views 1 Watching
  • 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by
    #1

    Will QFileDialog handle "double-barrelled" extensions such as .tar.gz, or .fits.fz in a name filter.

    For example: "Fits files (*.fit, *.fit.fz, *.fts, *.fts.fz, *.fits, *.fits.fz)"

    Thanks
    David

    JonBJ 1 Reply Last reply
    0
    • PerdrixP Perdrix

      Will QFileDialog handle "double-barrelled" extensions such as .tar.gz, or .fits.fz in a name filter.

      For example: "Fits files (*.fit, *.fit.fz, *.fts, *.fts.fz, *.fits, *.fits.fz)"

      Thanks
      David

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Perdrix
      I don't know, but wouldn't it depend on whether you are using the Qt version or the native one? And possibly in the latter case by OS? I'm assuming/guessing the native one gets passed and handles the filtering itself?

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Why not simply try it out?

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0
        • PerdrixP Offline
          PerdrixP Offline
          Perdrix
          wrote on last edited by
          #4

          It's often quicker to ask - if no-one knows then I will of course try it.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jackson12
            wrote on last edited by
            #5

            Some platforms or Qt versions may treat .gz as the primary extension, so the dialog might not match files as expected unless each full extension is written out.

            1 Reply Last reply
            0

            • Login

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