Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Possible bug in BorderImage

$
0
0
Creating a border pixel from a 3×3/4×4 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 650 Regards, Zeiko

Viewing all articles
Browse latest Browse all 4972

Trending Articles