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

Designer creating unsupported code for color palettes

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 5.9.8, 5.12.1, 5.12.2
    • 5.12.0
    • Build tools: uic
    • None
    • Windows 10
      Qt 5.9

    • Windows
    • 3c3a2eb3cea0bbb0b45e43278421e051c253e434 (qt/qtbase/5.12) 357bc63639a6ef46f6fe4c626ffbc463ad178ba6 (qt/qtbase/5.9)

    Description

      Creating a color palette within designer creates a color for the QPalette::PlaceholderText role, even when this not supported in the selected Qt 5.9 kit (QPalette::PlaceholderText has been added with Qt 5.12).

      Normally, the value is not generated unless actively modified, but the "Quick Tune Palette" button creates values for all roles.

      This creates invalid code in the moc'd C++ file, requiring to edit the .ui file by hand (which is actively discouraged by Creator).

      "Add a QPalette color role for placeholder texts" ebd3a13b807c6af2684b42d3912549caf7ef82aa https://codereview.qt-project.org/#/c/221775/

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              VersalEszett Julius Bullinger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes