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

Windows: Warnings when maximizing a window: QPainter::begin: Paint device returned engine == 0, type: 3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.9.1
    • QPA: Windows
    • None
    • Windows

      The attached code gives the following output when maximizing the window:

       

      --- MainWindow.event(), Window native handle created
      --- MainWindow.paintEvent called
      --- MainWindow.paintEvent called
      --- MainWindow.paintEvent called
      QPainter::begin: Paint device returned engine == 0, type: 3
      QPainter::setCompositionMode: Painter not active
      QPainter::fillRect: Painter not active
      QPainter::setCompositionMode: Painter not active
      QPainter::setBrush: Painter not active
      QPainter::setPen: Painter not active
      QPainter::drawPath: Painter not active
      QPainter::setPen: Painter not active
      QPainter::setFont: Painter not active
      QPainter::setFont: Painter not active
      QPainter::setBrush: Painter not active
      QPainter::setPen: Painter not active
      QPainter::setPen: Painter not active
      QPainter::setBrush: Painter not active
      QPainter::setPen: Painter not active
      QPainter::setPen: Painter not active
      QPainter::setBrush: Painter not active
      QPainter::setPen: Painter not active
      QPainter::setPen: Painter not active
      QPainter::end: Painter not active, aborted
      --- MainWindow.paintEvent called
      --- MainWindow.paintEvent called
      --- MainWindow.paintEvent called
      --- MainWindow.event(), Window native handle created
       

       

       

      ------

      > pip show PySide6
      Name: PySide6
      Version: 6.9.1

        1. qtbug139434.zip
          2 kB
        2. ptest.py
          0.7 kB
        3. hello.cpp
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            owolff Oliver Wolff
            zohar z z
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes