qnanopainter icon indicating copy to clipboard operation
qnanopainter copied to clipboard

Qt Widgets rendered in NanoVG

Open maxrossi opened this issue 4 years ago • 1 comments

I would like to know if existing Qt Widgets could easily ported to be able to render on NanoVG

maxrossi avatar Jun 20 '20 10:06 maxrossi

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.

QUItCoding avatar Jun 20 '20 20:06 QUItCoding