Skip to content

QScrollArea

QScrollArea is a widget that provides a scroll view onto another widget.

Example

example_scrollArea.ts
import path from "path";
import { QScrollArea, QLabel, QPixmap } from '@vixen-js/core';
const scrollArea = new QScrollArea();
scrollArea.setInlineStyle("flex: 1; width: '100%';");
const image = new QLabel();
const pix = new QPixmap(
path.join(__dirname, "../assets/images/hello-world.png")
);
image.setPixmap(pix);
scrollArea.setWidget(image);

Learn more about QScrollArea in: https://doc.qt.io/qt-6/qscrollarea.html