Skip to content

QSvgWidget

QSvgWidget is a widget that provides an SVG image that you can use in your application.

Example

example_qSvgWidget.ts
import fs from "fs";
import { QSvgWidget } from '@vixen-js/core';
const svg = new QSvgWidget();
svg.load("./assets/image.svg");
// or
fs.readFile("./assets/image.svg", (err, buff) => {
if (err) throw err;
svg.load(buff);
});

Learn more about QSvgWidget in: https://doc.qt.io/qt-6/qsvgwidget.html