Possible bug in BorderImage
-
Creating a border pixel from a 3x3/4x4 pixel PNG where the center pixel/pixels is transparent gives a very strange result when put in a resizable "large" rectangle.
The border only fills up the top part of the rectangle and there are severe performance decrease when resizing.
Changing the border size to 2 instead of 1 fixes the problem though, however the border still looks a bit strange during resizing.Should borders be created by using rectangles with 1 pixel width or height instead?
QML:
@import QtQuick 2.1
Rectangle {
width: 300
height: 200
color: "green"BorderImage { anchors.fill: parent border { left: 1; top: 1; right: 1; bottom: 1 } verticalTileMode: BorderImage.Repeat horizontalTileMode: BorderImage.Repeat source: "borderImage.png" }
}@
Test environment:
Windows 7/Windows 8, Qt 5.1 Angle, NVidia GeForce GTX 650Regards,
Zeiko
-
Please wrap your code in '@' tags, it's much easier to read then. You can report bugs in "Jira":https://qt-project.org/wiki/ReportingBugsInQt. Please post the link to Jira item here if you decide to do it, I'd like to watch the progress.
-
Thanks, here is the link: https://bugreports.qt-project.org/browse/QTBUG-33103