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

Radius not working from QSGDefaultInternalRectangleNode

XMLWordPrintable

    • 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);

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kagro Kaj Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes