diff --git a/docs/README.md b/docs/README.md index 6eb7de217..bd0383a52 100644 --- a/docs/README.md +++ b/docs/README.md @@ -45,6 +45,7 @@ - [QProgressBar (ProgressBar)](api/QProgressBar.md) - [FlexLayout](api/FlexLayout.md) - [QPixmap](api/QPixmap.md) +- [Qt Enums](api/QtEnums.md) ### Internal Modules diff --git a/docs/api/NodeWidget.md b/docs/api/NodeWidget.md index bc3167622..3f2200f14 100644 --- a/docs/api/NodeWidget.md +++ b/docs/api/NodeWidget.md @@ -132,3 +132,7 @@ Repaints the widget. It calls the native method [QWidget: repaint](https://doc.q #### `widget.update()` Updates the widget. It calls the native method [QWidget: update](https://doc.qt.io/qt-5/qwidget.html#update). + +#### `widget.size()` + +returns the current widget size. It calls the native method [QWidget: size](https://doc.qt.io/qt-5/qwidget.html#size-prop). The returned size object contains width and height in pixels. diff --git a/docs/api/QPixmap.md b/docs/api/QPixmap.md index 9d3c4ada8..814842165 100644 --- a/docs/api/QPixmap.md +++ b/docs/api/QPixmap.md @@ -49,4 +49,4 @@ This method doesnt mutate this pixmap and rather returns a new pixmap with new h - `width` number. Width in pixels for new pixmap. - `height` number. Height in pixels for new pixmap. -- `aspectRatioMode` AspectRatioMode (_optional_). Specifies how scaling should happen. [AspectRatio is an enum from Qt](QtEnums.md) +- `aspectRatioMode` AspectRatioMode (_optional_). Specifies how scaling should happen. [AspectRatio is an enum from Qt](api/QtEnums.md)