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

Designer creating unsupported code for color palettes

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.12.0
    • Fix Version/s: 5.9.8, 5.12.1, 5.12.2
    • Component/s: Build tools: uic
    • Labels:
      None
    • Environment:

      Windows 10
      Qt 5.9

    • Platform/s:
      Windows
    • Commits:
      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

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              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