Skip to content

PythonQt.QtGui.QProgressBar · declarations 001

Back to PythonQt.QtGui.QProgressBar

alignment instance-attribute

alignment: Any

Qt 5 reference:

alignment : Qt::Alignment

This property holds the alignment of the progress bar

Access functions:

Qt::Alignment alignment() const
void setAlignment(Qt::Alignment alignment)

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#alignment

customContextMenuRequested

customContextMenuRequested(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QProgressBar.customContextMenuRequested; argument details are not documented.

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QProgressBar.destroyed; argument details are not documented.

event

event(e: Any) -> bool

X.event(e) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QProgressBar::event(QEvent *e)

Reimplements: QWidget::event(QEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

event(self, e: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#event

format instance-attribute

format: str

Qt 5 reference:

format : QString

This property holds the string used to generate the current text

%p - is replaced by the percentage completed. %v - is replaced by the current value. %m - is replaced by the total number of steps.

The default value is "%p%".

This property was introduced in Qt 4.2.

Access functions:

QString format() const
void setFormat(const QString \&format)
void resetFormat()

See also text().

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#format

initStyleOption

initStyleOption(option: Any) -> None

X.initStyleOption(option)

Supplemental documentation: Qt 5 reference:

[protected] void QProgressBar::initStyleOption(QStyleOptionProgressBar *option) const

Initialize option with the values from this QProgressBar. This method is useful for subclasses when they need a QStyleOptionProgressBar, but don't want to fill in all the information themselves.

See also QStyleOption::initFrom().

Upstream PySide2 reference signatures (binding differences may apply):

initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionProgressBar) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#initStyleOption

invertedAppearance instance-attribute

invertedAppearance: bool

Qt 5 reference:

invertedAppearance : bool

This property holds whether or not a progress bar shows its progress inverted

If this property is true, the progress bar grows in the other direction (e.g. from right to left). By default, the progress bar is not inverted.

This property was introduced in Qt 4.1.

Access functions:

bool invertedAppearance() const
void setInvertedAppearance(bool invert)

See also orientation and layoutDirection.

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#invertedAppearance

isTextVisible

isTextVisible() -> bool

X.isTextVisible() -> bool

Upstream PySide2 reference signatures (binding differences may apply):

isTextVisible(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#isTextVisible

maximum instance-attribute

maximum: int

Qt 5 reference:

maximum : int

This property holds the progress bar's maximum value

When setting this property, the minimum is adjusted if necessary to ensure that the range remains valid. If the current value falls outside the new range, the progress bar is reset with reset().

Access functions:

int maximum() const
void setMaximum(int maximum)

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#maximum

minimum instance-attribute

minimum: int

Qt 5 reference:

minimum : int

This property holds the progress bar's minimum value

When setting this property, the maximum is adjusted if necessary to ensure that the range remains valid. If the current value falls outside the new range, the progress bar is reset with reset().

Access functions:

int minimum() const
void setMinimum(int minimum)

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#minimum

minimumSizeHint instance-attribute

minimumSizeHint: QSize

Qt 5 reference:

[override virtual] QSize QProgressBar::minimumSizeHint() const

Reimplements an access function for property: QWidget::minimumSizeHint.

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#minimumSizeHint

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QProgressBar.objectNameChanged; argument details are not documented.

orientation instance-attribute

orientation: Any

Qt 5 reference:

orientation : Qt::Orientation

This property holds the orientation of the progress bar

The orientation must be Qt::Horizontal (the default) or Qt::Vertical.

This property was introduced in Qt 4.1.

Access functions:

Qt::Orientation orientation() const
void setOrientation(Qt::Orientation)

See also invertedAppearance and textDirection.

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#orientation

paintEvent

paintEvent(arg__1: Any) -> None

X.paintEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QProgressBar::paintEvent(QPaintEvent *)

Reimplements: QWidget::paintEvent(QPaintEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

paintEvent(self, arg__1: PySide2.QtGui.QPaintEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#paintEvent

reset

reset() -> None

X.reset()

Supplemental documentation: Qt 5 reference:

[slot] void QProgressBar::reset()

Reset the progress bar. The progress bar "rewinds" and shows no progress.

Upstream PySide2 reference signatures (binding differences may apply):

reset(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#reset

resetFormat

resetFormat() -> None

X.resetFormat()

Upstream PySide2 reference signatures (binding differences may apply):

resetFormat(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#resetFormat

setAlignment

setAlignment(alignment: Any) -> None

X.setAlignment(alignment)

Upstream PySide2 reference signatures (binding differences may apply):

setAlignment(self, alignment: PySide2.QtCore.Qt.Alignment) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#setAlignment

setFormat

setFormat(format: str) -> None

X.setFormat(format)

Upstream PySide2 reference signatures (binding differences may apply):

setFormat(self, format: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#setFormat

setInvertedAppearance

setInvertedAppearance(invert: bool) -> None

X.setInvertedAppearance(invert)

Upstream PySide2 reference signatures (binding differences may apply):

setInvertedAppearance(self, invert: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#setInvertedAppearance

setMaximum

setMaximum(maximum: int) -> None

X.setMaximum(maximum)

Upstream PySide2 reference signatures (binding differences may apply):

setMaximum(self, maximum: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#setMaximum

setMinimum

setMinimum(minimum: int) -> None

X.setMinimum(minimum)

Upstream PySide2 reference signatures (binding differences may apply):

setMinimum(self, minimum: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#setMinimum

setOrientation

setOrientation(a: Any) -> None

X.setOrientation(a)

Upstream PySide2 reference signatures (binding differences may apply):

setOrientation(self, arg__1: PySide2.QtCore.Qt.Orientation) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#setOrientation

setRange

setRange(minimum: int, maximum: int) -> None

X.setRange(minimum, maximum)

Supplemental documentation: Qt 5 reference:

[slot] void QProgressBar::setRange(int minimum, int maximum)

Sets the progress bar's minimum and maximum values to minimum and maximum respectively.

If maximum is smaller than minimum, minimum becomes the only legal value.

If the current value falls outside the new range, the progress bar is reset with reset().

The QProgressBar can be set to undetermined state by using setRange(0, 0).

See also minimum and maximum.

Upstream PySide2 reference signatures (binding differences may apply):

setRange(self, minimum: int, maximum: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#setRange

setTextDirection

setTextDirection(textDirection: Any) -> None

X.setTextDirection(textDirection)

Upstream PySide2 reference signatures (binding differences may apply):

setTextDirection(self, textDirection: PySide2.QtWidgets.QProgressBar.Direction) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#setTextDirection

setTextVisible

setTextVisible(visible: bool) -> None

X.setTextVisible(visible)

Upstream PySide2 reference signatures (binding differences may apply):

setTextVisible(self, visible: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#setTextVisible

setValue

setValue(value: int) -> None

X.setValue(value)

Upstream PySide2 reference signatures (binding differences may apply):

setValue(self, value: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#setValue

sizeHint instance-attribute

sizeHint: QSize

Qt 5 reference:

[override virtual] QSize QProgressBar::sizeHint() const

Reimplements an access function for property: QWidget::sizeHint.

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#sizeHint

text instance-attribute

text: str

Qt 5 reference:

text : const QString

This property holds the descriptive text shown with the progress bar

The text returned is the same as the text displayed in the center (or in some styles, to the left) of the progress bar.

The progress shown in the text may be smaller than the minimum value, indicating that the progress bar is in the "reset" state before any progress is set.

In the default implementation, the text either contains a percentage value that indicates the progress so far, or it is blank because the progress bar is in the reset state.

Access functions:

virtual QString text() const

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#text

textDirection instance-attribute

textDirection: Any

Qt 5 reference:

textDirection : Direction

This property holds the reading direction of the text for vertical progress bars

This property has no impact on horizontal progress bars. By default, the reading direction is QProgressBar::TopToBottom.

This property was introduced in Qt 4.1.

Access functions:

QProgressBar::Direction textDirection() const
void setTextDirection(QProgressBar::Direction textDirection)

See also orientation and textVisible.

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#textDirection

textVisible instance-attribute

textVisible: Any

Qt 5 reference:

textVisible : bool

This property holds whether the current completed percentage should be displayed

This property may be ignored by the style (e.g., QMacStyle never draws the text).

Access functions:

bool isTextVisible() const
void setTextVisible(bool visible)

See also textDirection.

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#textVisible

value instance-attribute

value: int

Qt 5 reference:

value : int

This property holds the progress bar's current value

Attempting to change the current value to one outside the minimum-maximum range has no effect on the current value.

Access functions:

int value() const
void setValue(int value)

Notifier signal:

void valueChanged(int value)

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#value

valueChanged

valueChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QProgressBar.valueChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QProgressBar::valueChanged(int value)

This signal is emitted when the value shown in the progress bar changes. value is the new value shown by the progress bar.

Note: Notifier signal for property value.

Source: https://doc.qt.io/archives/qt-5.15/qprogressbar.html#valueChanged

windowIconChanged

windowIconChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QProgressBar.windowIconChanged; argument details are not documented.

windowIconTextChanged

windowIconTextChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QProgressBar.windowIconTextChanged; argument details are not documented.

windowTitleChanged

windowTitleChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QProgressBar.windowTitleChanged; argument details are not documented.