nodeguy/website/docs/api/QProgressBar.md
Atul R eca218ac79
Adds new doc site (#124)
* Adds base template for new docs site

* Adds Apis to docs

* add some css from rn

* Fix right side sidebar functionality

* Basic docs

* adds old docs

* Cleans up unnecessary files

* Chane links

* Adds docusaurus v2

* Styling fixes

* adds wip and new assets

* adds code image

* Add FAQ link

* Adds analytics

* adds cname

* cleanup blogs
2019-09-29 20:14:35 +02:00

2.3 KiB

sidebar_label title
QProgressBar QProgressBar

Create and control progress bar widgets.

This class is a JS wrapper around Qt's QProgressBar class

A QProgressBar provides ability to add and manipulate native progress bar widgets.

QProgressBar inherits from NodeWidget

Example

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

const progressBar = new QProgressBar();

new QProgressBar(parent?)

  • parent NodeWidget (optional). Any widget inheriting from NodeWidget can be passed as a parent. This will make this widget, the child of the parent widget.

Static Methods

QProgressBar can access all the static methods defined in NodeWidget

Instance Properties

QProgressBar can access all the instance properties defined in NodeWidget

Instance Methods

QProgressBar can access all the instance methods defined in NodeWidget. Additionally it also has the following instance methods:

progressBar.setValue(value)

Sets the current value of the progressBar. It calls the native method QProgressBar: setValue.

  • value number - Set the value as current value

progressBar.setMaximum(max)

Sets the max value of the progressBar. It calls the native method QProgressBar: setMaximum.

  • max number - Set the value as max value of the progress bar.

progressBar.setMinimum(min)

Sets the min value of the progressBar. It calls the native method QProgressBar: setMinimum.

  • min number - Set the value as min value of the progress bar.

progressBar.setOrientation(orientation)

Sets the orientation of the progressBar. It calls the native method QProgressBar: setOrientation.

progressBar.value()

Returns the current value (Number) of the progressBar. It calls the native method QProgressBar: value.