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

QColorDialog initial color lost after calling setOptions on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.3
    • None
    • Linux/Wayland

    Description

      If calling QColorDialog with an initial color (i.e. as initial arg to constructor), if

      setOptions(QColorDialog::ShowAlphaChannel | QColorDialog::NoButtons | QColorDialog::DontUseNativeDialog);

      is called afterwards, when the dialog is shown, the initial color isn't displayed on Linux. Works fine on Windows.

      Workaround seems to be to call setCurrentColor after setOptions. But the docs don't appear to say that is necessary.

      Attachments

        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
            srcejon Jon Beniston
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes