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. QFileDialog with filter "All files (*)" or "All files (*.*)" problem
Forum Updated to NodeBB v4.3 + New Features

QFileDialog with filter "All files (*)" or "All files (*.*)" problem

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 957 Views 2 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.
  • R Offline
    R Offline
    Robert Hairgrove
    wrote on last edited by Robert Hairgrove
    #1

    Using Qt 5.11.1 on Linux Ubuntu 18.04 LTS and the default (Nautilus) file manager:

    When I add "All files (*.*)" or "All files (*)" to the filter in the call to QFileDialog::getSaveFileName(), no files are displayed in the folder. When choosing any other filter, the files containing the appropriate extension are displayed. The file name entered by the user is returned properly, but it would be nice to select an existing file name and tweak it, for example. At present, the user must type in the entire file name.

    Shouldn't all existing files in the folder be displayed when "All files" is selected?

    Perhaps this is a Nautilus bug?

    R 1 Reply Last reply
    0
    • R Robert Hairgrove

      Using Qt 5.11.1 on Linux Ubuntu 18.04 LTS and the default (Nautilus) file manager:

      When I add "All files (*.*)" or "All files (*)" to the filter in the call to QFileDialog::getSaveFileName(), no files are displayed in the folder. When choosing any other filter, the files containing the appropriate extension are displayed. The file name entered by the user is returned properly, but it would be nice to select an existing file name and tweak it, for example. At present, the user must type in the entire file name.

      Shouldn't all existing files in the folder be displayed when "All files" is selected?

      Perhaps this is a Nautilus bug?

      R Offline
      R Offline
      Robert Hairgrove
      wrote on last edited by
      #2

      In the meantime I have discovered that at times, other filters are ignored. Can't make sense of this, though. I suspect that the last filter in the list is being ignored, but need to do more testing.

      raven-worxR 1 Reply Last reply
      0
      • R Robert Hairgrove

        In the meantime I have discovered that at times, other filters are ignored. Can't make sense of this, though. I suspect that the last filter in the list is being ignored, but need to do more testing.

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by raven-worx
        #3

        @robert-hairgrove
        please post the code of the filter.
        The "All Files" filter should be the last filter in the list.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        R 1 Reply Last reply
        2
        • raven-worxR raven-worx

          @robert-hairgrove
          please post the code of the filter.
          The "All Files" filter should be the last filter in the list.

          R Offline
          R Offline
          Robert Hairgrove
          wrote on last edited by
          #4

          @raven-worx Thank you for replying. It seems to be working now, I really don't know what went wrong. I must have had a typo in the filter somehow.

          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