diff --git a/src/controls/Private/qquickstyleitem.cpp b/src/controls/Private/qquickstyleitem.cpp index 3a6752fd806228901fd001c2dfcb7ecfc04316b2..64240feb7638d4be414a0566a147b6287ec6dcbf 100644 --- a/src/controls/Private/qquickstyleitem.cpp +++ b/src/controls/Private/qquickstyleitem.cpp @@ -1791,7 +1791,7 @@ QSGNode *QQuickStyleItem::updatePaintNode(QSGNode *node, UpdatePaintNodeData *) QSGNinePatchNode *styleNode = static_cast<QSGNinePatchNode *>(node); if (!styleNode) { - styleNode = QQuickItemPrivate::get(this)->sceneGraphContext()->createQStyleNode(); + styleNode = QQuickItemPrivate::get(this)->sceneGraphContext()->createNinePatchNode(); if (!styleNode) styleNode = new QQuickStyleNode; }