Efficient custom shapes in QtQuick with Rust: https://carlschwan.eu/2021/01/20/efficient-custom-shapes-in-qtquick-with-rust/
@carl This opens interesting possibilities, great work!
@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.
@Jbb Hopefull not with a cloudfare error here :)
@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.
Adding SVG export was surprisingly easy thanks to QPainterPath: https://invent.kde.org/carlschwan/kirigami-drawing/-/merge_requests/1
Linux Geeks doing what Linux Geeks do..