Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 833 Bytes

File metadata and controls

32 lines (18 loc) · 833 Bytes

Class: QIcon

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

Example

const { QIcon } = require("@nodegui/nodegui");

const imageUrl = "path/to/png";
const icon = new QIcon(imageUrl);

new QIcon(imageUrl?)

  • imageUrl string (optional). Absolute path of the image that needs to be loaded in the memory.

Static Methods

QIcon can access all the static methods defined in Component

Instance Properties

QIcon can access all the instance properties defined in Component

Instance Methods

QIcon can access all the instance methods defined in Component