Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.0
-
None
-
all
-
10ce105b25a03fbde1889ea767985d5009658a1d
Description
Execute the following QML file in qmlscene:
import QtQuick 2.0 Rectangle { width: 360 height: 360 radius: 99 gradient: Gradient { GradientStop { position: 0 color: "#82fc08" } GradientStop { position: 0.825 color: "#ffffff" } GradientStop { position: 1.023 color: "#7dfa00" } } border.width: 99 }
You'll see something like this:
That triangle should not be there at all.
If you use this file in a QtQuick2ApplicationViewer and run a debug build of this, you'll run into an assert: "index == vertexCount in file C:\Users\rob\dev\src\qt-5-release\qtdeclarative\src\quick\scenegraph\qsgdefaultrectanglenode.cpp, line 563
Found by Henri.
Attachments
For Gerrit Dashboard: QTBUG-36059 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
113339,3 | QSGDefaultRectangleNode: Fix gradient position calculations | 5.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |