hi,
I'm having a hard time filling the rounded rectangle with borders in 2 colors.
I tried creating 2 child rectangle and use clip property but it is not working.
Please advise. Thanks
hi,
I'm having a hard time filling the rounded rectangle with borders in 2 colors.
I tried creating 2 child rectangle and use clip property but it is not working.
Please advise. Thanks
You'll have to provide at least some visual hint on what you want it to look like.
While most Qt experts are telepaths, there is always a limit on range.
Cheers,
_
sorry, I forgot to include a sample.
Actually, I tried creating a child rectangle and fill it with solid color, however it won't clip on the parent rectangle's rounded corner.
button.png
Ah. This use case it probably better solved using a border image.
http://doc.qt.io/qt-5/qml-qtquick-borderimage.html
Cheers,
_
I meant that this form of visualization is what BorderImage was designed for.
Cheers,
_
Bookmarks