qnanopainter
qnanopainter copied to clipboard
Qt Widgets rendered in NanoVG
I would like to know if existing Qt Widgets could easily ported to be able to render on NanoVG
If you have a custom QWidget you would like to port to use QNanoPainter, yes that can be done quite easily. Just change it to inherit QNanoWidget and port paint() method to use QNanoPainter (see hellowidget example).
If you mean could whole Qt QWidgets set ( https://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets ) move from QPainter to QNanoPainter: Not really, as QNanoPainter API doesn't contain everything QPainter does and there would be a lot of porting work, theming etc.