The QIcon class provides scalable icons in different modes and states.
This class is a JS wrapper around Qt's QIcon class
QIcon inherits from Component
const { QIcon } = require("@nodegui/nodegui");
const imageUrl = "path/to/png";
const icon = new QIcon(imageUrl);imageUrlstring (optional). Absolute path of the image that needs to be loaded in the memory.
QIcon can access all the static methods defined in Component
QIcon can access all the instance properties defined in Component
QIcon can access all the instance methods defined in Component