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

QWidget does not draw PE_Widget

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.2.1
    • Widgets: Style Sheets
    • None

      First of all, I'm not 100% certain if this is indeed a bug, so my apologizes if I misunderstood anything.

      It seems the paintEvent of QWidget is empty, and only implemented in subclasses. I think it should instead draw a PE_Widget so a plain QWidget can be styled with stylesheets, for example to set background colors.

      If there is a case this shouldn't be done, at least the stylesheet documentation should point out you can't style QWidgets, only subclasses of it.

      This caused some confusion for me which was answered on Stackoverflow.

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

            bachewii Jens
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes