QUIt Coding
QUIt Coding
Looking nice! If this would be to be baked into QNanoPainter examples I would: - Add it as part of gallery examples instead of separate app. I like that there...
I think support for dashed lines & borders should be done at NanoVG level. If (our) NanoVG will get the support, QNanoPainter API for that will also be made. There...
I have't used QGraphicsScene & QGraphicsView for a while since Qt Quick came... I think QGraphicsItem depends so much on QPainter that replacing it with QNanoPainter isn't straightforward. But I...
This is issue/feature of NanoVG, see https://github.com/memononen/nanovg/issues/214 QNanoPainter has QNanoQuickItem::setHighQualityRendering() to turn NVG_STENCIL_STROKES on. This slows down rendering slightly but draws correctly those semi-transparent overlapping stokes. Here left shows gallery...
Please tell more, on what HW are you running? Built with QtCreator ’Release’ target and not ’Debug’ target? Running QPainter with default QImage rendertarget ( = CPU paint engine) or...
Thanks! Interesting that QNanoPainter stays at ~45 fps even when rendering count increases… Don’t know what could be hampering the performance when QPainter+FBO reaches 60 fps. Maybe there is something...
Thanks Niels! Good point about Fps indicator, it only shows fps the indicator can animate at. This simple approach has served us quite well in other places but it’s very...
Did a bit testing regarding this now. At least on my Linux PC with Mesa, Qt scene graph uses ”basic” render loop by default. This caused showing those < 60...
I haven't really been using QNanoWidget other than in the simple example. So based on that note, patch should actually use https://doc.qt.io/qt-6/qopenglcontext.html#setShareContext ?
Tested that Gallery / QNanoPainter features example crashes with this patch when swiping to right & left for while. There are also outputs "Attempting to create QWindow-based QOffscreenSurface outside the...