Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Possible bug in BorderImage
Forum Updated to NodeBB v4.3 + New Features

Possible bug in BorderImage

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zeiko
    wrote on last edited by
    #1

    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 650

    Regards,

    Zeiko

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        Zeiko
        wrote on last edited by
        #3

        Thanks, here is the link: https://bugreports.qt-project.org/browse/QTBUG-33103

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved