Efficient custom shapes in QtQuick with Rust: https://carlschwan.eu/2021/01/20/efficient-custom-shapes-in-qtquick-with-rust/
@agateau Thanks :)
@carl Do you think this could become a modern alternative to QGraphicsView for applications that do things like drawing writing and positioning shapes?
I'm especially thinking of OpenBoard here.
@Jbb Very probably. For shapes to make the transition even easier I have a QPainterPath to LyonGeometry converter. For writing, I need to figure out a way to convert the mouse events into a set of path item, that might be a bit harder.
@Jbb For drawing, maybe I could port https://invent.kde.org/graphics/digikam/-/blob/master/core/utilities/fuzzysearch/sketchwidget.cpp to a QQuickItem.
@carl Nice! That could almost power OpenBoard already, and would also solve the problem of not being able to show QtWebEngine views in the graphics scene. OpenBoard currently still uses QtWebKit for that, because it supports widgets written in html + js.
@carl Great!
Adding SVG export was surprisingly easy thanks to QPainterPath: https://invent.kde.org/carlschwan/kirigami-drawing/-/merge_requests/1
@carl This opens interesting possibilities, great work!