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

QML FileDialog doesn't look correct with dark system theme

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.13.1
    • Quick: Dialogs
    • None
    • Linux 5.3.6
      Qt 5.13.1
      KDE Plasma 5.17
      Themes used: Breeze (light) and Breeze Dark (dark)
    • Linux/X11

    Description

      When using the QML FileDialog, it shows as expected when using a light system theme. When using a dark system theme however, it doesn't look correct and is almost impossible to use.
      This is not an issue when using QtWidgets and QFileDialog.
      Attachments shows the QML file dialog using a light and dark theme as well as using a dark theme with QFileDialog (from Qt.labs.platform).

      Example (qml):

      FileDialog {
      	id: fileDialog
      	title: "File Dialog"
      }
      Button {
      	text: "Open File Dialog"
      	onClicked: {
      		fileDialog.visible = true
      	}
      }
      

      Attachments

        1. qml_filedialog_dark.png
          107 kB
          kraxie
        2. qml_filedialog_light.png
          137 kB
          kraxie
        3. qwidgets_qfiledialog_dark.png
          54 kB
          kraxie
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kraxie kraxie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes