[Interest] Transparent rectangle with radius in one side

Shawn Rutledge Shawn.Rutledge at qt.io
Tue Oct 5 10:56:47 CEST 2021


Try QtQuick.Shapes; you can get any shape you want.  However those don’t do vertex antialiasing, so you might need to turn on MSAA to get rid of the jaggies.  So it would be best to try to put all the shapes as children of one item (or children of a root shape) so that you only need to set layer.samples in one place, which will be more efficient.

Canvas just uses QPainter to do cpu rendering (pixel by pixel).  So there will be a texture the size of the canvas, and again it would be best to do as little of that as possible: put them all into one canvas.


More information about the Interest mailing list