Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-56802

QFileDialog of qt5 displays only directories when I use QFileDialog::Directory.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.7.0
    • None
    • Linux(Archlinux)

    Description

      http://doc.qt.io/qt-5/qfiledialog.html#FileMode-enum
      This document describes that "QFileDialog::Directory" displays both files and directories.
      But I wrote a simple program like I attatched, it displays only directory if I use qt5( g++ test.cpp $(pkg-config --libs --cflags Qt5Widgets) -std=c++11 -fPIC ).
      And if I use qt4( g++ test.cpp $(pkg-config --libs --cflags QtGui) -std=c++11 -fPIC ), it displays both files and directories as the document described(and as I expected).

      Steps to reproduce

      1. just compile test.cpp with qt5 and execute it.

      Expected result

      It displays both files and directories.

      Actual result

      It displays only directories.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mmutz Marc Mutz
            tyamada taro yamada
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes