Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt Widgets rendered in NanoVG #54

Open
maxrossi opened this issue Jun 20, 2020 · 1 comment
Open

Qt Widgets rendered in NanoVG #54

maxrossi opened this issue Jun 20, 2020 · 1 comment

Comments

@maxrossi
Copy link

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

@QUItCoding
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants