Create and control text.
This class is a JS wrapper around Qt's QLabel class
A QLabel provides ability to add and manipulate text.
QLabel inherits from NodeWidget
const { QLabel } = require("@nodegui/nodegui");
const label = new QLabel();
label.setText("Hello");parentNodeWidget (optional). Any widget inheriting from NodeWidget can be passed as a parent. This will make this widget, the child of the parent widget.
QLabel can access all the static methods defined in NodeWidget
QLabel can access all the instance properties defined in NodeWidget. Additionally it also has the following instance properties:
The pixmap currently set on this label.
the current text set on the label.
QLabel can access all the instance methods defined in NodeWidget. Additionally it also has the following instance methods:
Sets the given text to the label.
textstring
onboolean - If true it sets wordwrap on the label
Images in the form of a pixmap can be set as the label content
pixMapQPixmap - Allows to set image content in the form of a QPixmap on the label