Theses classes show how to make a QQuickItem
that draws a rectangle with different border radiuses /different roundings.
RoundedRectangle
: the C++ class that draws the rectangle, usingQPainter
API.RoundedCorners
: a C++ class to simplify the definition of different roundings.
RoundedRectangle {
width: 100