-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7
-
None
-
bda6820f8 (dev)
When creating QSGDefaultInternalRectangleNode in C++ and setting it's values e.g.:
auto rectNode = new QSGDefaultInternalRectangleNode(); rectNode->setRect(barRect); rectNode->setColor(randColor); rectNode->setPenWidth(1.0); rectNode->setPenColor(QColor("white")); rectNode->setRadius(5.0);
The radius doesn't work. I believe reason is changes made in https://codereview.qt-project.org/c/qt/qtdeclarative/+/477301
Instead of setting those top/bottom/left/right radius to -1 in QQuickRectangle they should probably default to -1 in the node?
https://codereview.qt-project.org/c/qt/qtdeclarative/+/477301/43/src/quick/items/qquickrectangle.cpp#808
This works, but should't be needed:
barItem->setTopLeftRadius(-1); barItem->setTopRightRadius(-1); barItem->setBottomLeftRadius(-1); barItem->setBottomRightRadius(-1); barItem->setRadius(5.0);