Skip to content

QPixmap

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

Example

example_pixmap.ts
import { QPixmap, QLabel } from '@vixen-js/core';
const imageUrl = "../../assets/images/hello-world.png";
const pix = new QPixmap(imageUrl);
const image = new QLabel();
image.setPixmap(pix);

Learn more about QPixmap in: https://doc.qt.io/qt-6/qpixmap.html