Painter
Painter is a widget that provides a painter that you can use in your application.
Example
import { Window, View } from '@vixen-js/core-react';import { QPainter } from '@vixen-js/core';
export const App = () => {
const paint = () => { const painter = new QPainter(); painter.drawText(40, 40, "Hello Painter"); painter.end(); }
return ( <Window size={{ width: 300, height: 300 }} onPaint={paint} /> )}
Learn more about QPainter
in: https://doc.qt.io/qt-6/qpainter.html