[Qt-qml] About BorderImage size

罗军 luoj at neusoft.com
Sat Oct 9 08:11:50 CEST 2010


Hi, everyone

    I have a picture, width is 24 and height is 42
    
Item {
    BorderImage {
        x: 0;
        width: 109; height: 42
        border { left: 8; top: 0; right: 8; bottom: 0 }
        verticalTileMode: BorderImage.Round // BorderImage.Repeat,  BorderImage.Stretch

        source: "xxx.png"
    }
}

Its width is shorter than 109, about 8 pixel.
When I change width is 120(24*3+16=120), it's ok.
Why ?

Best regards.
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------




More information about the Qt-qml mailing list