Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.1
-
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"); }