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

ColorDialog ShowAlphaChannel option doesn't work on GTK

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.0 Beta1
    • Quick: Dialogs
    • None
    • Linux Gnome

    Description

              ColorDialog {
                  id: borderColorDialog
                  selectedColor: "sienna"
                  options: ColorDialog.ShowAlphaChannel
                  // workaround: put a slider somewhere else in the UI
                  property color alphaAdjusted: Qt.rgba(selectedColor.r,
                                                        selectedColor.g,
                                                        selectedColor.b,
                                                        borderAlphaSlider.value)
              }
      

      If you don't run Gnome, set XDG_CURRENT_DESKTOP=gnome to simulate it.

      The reason for doing that is in turn to work around the bug that the dialog will not show up at all if its parent is an Item. (QTBUG-106598 etc.)

      I don't see an alpha slider. We need to find out if it's possible with a GTK dialog, and otherwise document if it's not possible.

      Attachments

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

        Activity

          People

            hurlevent Oliver Eftevaag
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes