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

QPalette - make it possible to define Custom Roles

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes