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

Fusion style QSpinBox produces warnings when rendering with small height

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.12.1
    • 5.11.2, 5.12
    • Widgets: Styles
    • Any platform with 'fusion' style.
    • dae2e6be939e5efcb48bcbfa872d07727dffacb2

    Description

      QSpinBox spin;
      spin.show();
      spin.resize(100, 6);
      

      and lower heights print:

      QPainter::begin: Paint device returned engine == 0, type: 2
      QPainter::setPen: Painter not active
      QPainter::setBrush: Painter not active
      QPainter::setRenderHint: Painter must be active to set rendering hints

      I experience this while using a QPropertyAnimation to resize a widget until it’s gone.
      This is the only style (tested Adwaita, Oxygen and Windows on Linux so far) and widget combination that produces warnings so far.

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            darklighter Norbert Pfeiler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes