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

uic: Changing Palette in Designer breaks UI with Qt 5.15.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5: Not important
    • 6.8.3, 6.9.0 Beta3, 6.10.0 FF
    • 6.9.0 Beta2
    • Build tools: uic
    • None
    • I am using Qt 5.15.2 MSVC 2019 x64 with Qt Creator 15.0 on Windows 11 x64
    • Windows
    • 1832ac4d2 (dev), 20646e132 (6.9), 0f2d3dc7c (6.8)

    Description

      Building a QWidgets based project with Qt5.15.2 kit, if one changes the palette of a widget in the form designer, the generated code will not compile. The tool is setting the QPalette::Accent ColorRole which is not support in Qt < 6.6.0 (IIRC). There are several version checks in the generated code for other Palette operations. This one is missing.

      #if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
          palette.setBrush(QPalette::Disabled, QPalette::Accent, brush1);
      #endif

      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
              timiskander Tim Iskander
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes