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

QML ColorDialog ignores flags

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.2
    • Quick: Dialogs
    • None
    • Linux/X11

    Description

      ColorDialog.flags seems to have no effect:

      import QtQuick.Controls
      import QtQuick.Dialogs
      
      ApplicationWindow {
          visible: true
          Button {
              text: color_dialog.selectedColor
              anchors.centerIn: parent
              ColorDialog {
                  id: color_dialog
                  flags: ColorDialog.ShowAlphaChannel | ColorDialog.NoButtons // XXX no effect
              }
              onClicked: color_dialog.open()
          }
      }
      

      There is no alpha channel control, and OK/Cancel buttons are visibles.

      It appears to be reproducible on Windows as well.

      Attachments

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

        Activity

          People

            hurlevent Oliver Eftevaag
            ux U X
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes