Skip to content

QWidget

QWidget is the base class for all widgets in Qt.

You can use this class to create your own widgets, is similar to the HTML <div> in the web world.

Example

example_widget.ts
import { QWidget, FlexLayout } from '@vixen-js/core';
const widget = new QWidget();
widget.setObjectName("container");
widget.setLayout(new FlexLayout());

Learn more about QWidget in: https://doc.qt.io/qt-6/qwidget.html