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

QColorDialog::ColorDialogOptions don't do what the docs say they do

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 4.8.0
    • 4.6.3
    • Documentation
    • None
    • 5efaeb863c3705693de1500a3bf012da8bbdc95a

    Description

      The ShowAlphaChannel and DontUseNativeDialog options in QColorDialog do not behave as documented under Linux. Consider the following code snippet:

      #include <QApplication>
      #include <QColorDialog>
      #include <QColor>

      int main(int argc, char* argv[])
      {
      QApplication app(argc, argv);
      QColorDialog::getColor(QColor(100, 100, 100), 0, "Test", QColorDialog::ShowAlphaChannel);
      }

      When I execute this code on linux (Fedora 13 64-bit), the alpha channel is not shown. If I add the QColorDialog::DontUseNativeDialog option to the above, I do get an alpha channel in my dialog, but the Qt documentation for DontUseNativeDialog says this option only affects Mac: "Use Qt's standard color dialog on the Mac instead of Apple's native color panel."

      While I can understand that the native color dialog on my system might be erroneously implemented (probably a bug in KDE), the documentation for DontUseNativeDialog is misleading because in this case I seem to get a different dialog with it under Linux too, not just under Mac.

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            jirauser11888 user-aa151 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes