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

QPalette - make it possible to define Custom Roles

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.0
    • GUI: Look'n'Feel
    • None

    Description

      For custom widgets it is often needed to use extra colors, and these colors also to be consistent across the application.

      QPalette fits this role in general, problem is one is limited to the ColorRole-s, predefined.
      This is very limiting for "standard" custom widgets, and even worse for "non-standard" widgets, based on QGraphicsWidgest, where look'n'feel must also be consistent, but not necessarily (most often not) based on platform's visuals.

      Considering QPalette is not passed by pointer, there is no way to fix the situation, except reinventing the wheel.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-17015
          # Subject Branch Project Status CR V

          Activity

            People

              srutledg Shawn Rutledge
              mnaydenov Mihail Naydenov
              Votes:
              7 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes