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. Qt5.0.1 fileDialog is giving warning should I really care about it ?

Qt5.0.1 fileDialog is giving warning should I really care about it ?

Scheduled Pinned Locked Moved General and Desktop
7 Posts 6 Posters 5.1k 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.
  • I Offline
    I Offline
    Immii
    wrote on last edited by
    #1

    if I call windows filedialog to get directories it says this warning
    Invalid parameter 'Directories' not found in 'All Files (*)'."

    I do not understand what parameter i am supply is invalid
    locationDialog->getExistingDirectory(m_window, "Destination", "Folder");

    i never had problem with qt4 with almost same call

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Hi, Maybe post your code as well, but maybe it has to do with the setting of the "seek" directory where the fileopen should start be looking.
      greetz

      Greetz, Jeroen

      1 Reply Last reply
      0
      • J Offline
        J Offline
        johnlamericain
        wrote on last edited by
        #3

        I've got the same warning in some code. After further research it looks like a bug in Qt code introduce in Qt 5 :

        https://bugreports.qt-project.org/browse/QTBUG-30001?page=com.atlassian.jirafisheyeplugin:fisheye-issuepanel

        1 Reply Last reply
        0
        • I Offline
          I Offline
          Immii
          wrote on last edited by
          #4

          Thank you for pointing me to that QTBUT-30001, seems like I dont need to put my more time to figure out what i am doing wrong.
          I see it is coming in 5.0.3 so i will wait for that to upgrade.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            wakeuky
            wrote on last edited by
            #5

            I ran across this same warning:

            @selectNameFilter: Invalid parameter 'Directories' not found in 'All Files (*)'.@

            Previous users cited that the fix should be delivered in Qt 5.0.3 I am using
            Qt 5.1.1.

            Snippet causing the warning:

            @QFileDialog dialog(this);
            dialog.setFileMode(QFileDialog::Directory);@

            Warning removed by updating to:

            @QFileDialog dialog(this);
            dialog.setFileMode(QFileDialog::Directory);
            dialog.setNameFilter("");@

            I do not understand this warning, "QFileDialog::AllFiles" is used with "setFileMode", correct? Why would you ever select a name filter when using a mode to select a directory? Is there functionality to filter directory names?

            Don't Panic

            1 Reply Last reply
            0
            • raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #6

              i guess the filter should look like this:
              @
              "All Files (.)" //instead of "(*)"
              @

              --- 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

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mmasur
                wrote on last edited by
                #7

                v5.1.1 user
                The solution for eliminating the warning message when using "getExistingDirectory" is to use the options:
                QFileDialog::ShowDirsOnly | QFileDialog::HideNameFilterDetails

                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