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

Attempting to create QWindow-based QOffscreenSurface outside the gui thread. Expect failures.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.1
    • GUI: Painting
    • None

    Description

      I get the following message on Win10 during shutdown if using a QQuickPaintedItem with drawText().

      "Attempting to create QWindow-based QOffscreenSurface outside the gui thread. Expect failures."

      If I change the height from 50 to e.g. 100 the message disappears.

      On Android everthing ok.

      Rectangle {
      id: iAzim
      width: parent.width
      height: childrenRect.height
      color: "green"

      DComp

      { width: parent.width height: 50 *// message, 100 no message* anchors.horizontalCenter: parent.horizontalCenter }

      }

      void DComp::paint(QPainter* p)

      { ... p->drawText(0, 0, width(), height(), Qt::AlignCenter, "Text"); }

      QTBUG-59502

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            tiroler Armin Fuchs
            Votes:
            6 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes