- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QStyleOptionProgressBar extends QStyleOption implements Cloneable
Used to describe the parameters necessary for drawing a progress bar
Java wrapper for Qt class QStyleOptionProgressBar
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QStyleOptionProgressBar()
protected
QStyleOptionProgressBar(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStyleOptionProgressBar(QStyleOptionProgressBar other)
-
Method Summary
Modifier and Type Method Description boolean
bottomToTop()
Whether the text reads from bottom to top when the progress bar is verticalQStyleOptionProgressBar
clone()
boolean
invertedAppearance()
Whether the progress bar's appearance is invertedint
maximum()
The maximum value for the progress barint
minimum()
The minimum value for the progress barQt.Orientation
orientation()
The progress bar's orientation (horizontal or vertical); the default orentation is Qt::Horizontalint
progress()
The current progress for the progress barvoid
set(QStyleOptionProgressBar arg__1)
void
setBottomToTop(boolean bottomToTop)
Whether the text reads from bottom to top when the progress bar is verticalvoid
setInvertedAppearance(boolean invertedAppearance)
Whether the progress bar's appearance is invertedvoid
setMaximum(int maximum)
The maximum value for the progress barvoid
setMinimum(int minimum)
The minimum value for the progress barvoid
setOrientation(Qt.Orientation orientation)
The progress bar's orientation (horizontal or vertical); the default orentation is Qt::Horizontalvoid
setProgress(int progress)
The current progress for the progress barvoid
setText(String text)
The text for the progress barvoid
setTextAlignment(Qt.Alignment textAlignment)
The text alignment for the text in the QProgressBarvoid
setTextAlignment(Qt.AlignmentFlag... textAlignment)
Overloaded function forsetTextAlignment(io.qt.core.Qt.Alignment)
.void
setTextVisible(boolean textVisible)
Flag indicating whether or not text is visibleString
text()
The text for the progress barQt.Alignment
textAlignment()
The text alignment for the text in the QProgressBarboolean
textVisible()
Flag indicating whether or not text is visibleMethods inherited from class io.qt.widgets.QStyleOption
direction, fontMetrics, init, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toString
-
Constructor Details
-
QStyleOptionProgressBar
public QStyleOptionProgressBar() -
QStyleOptionProgressBar
-
QStyleOptionProgressBar
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
set
-
setInvertedAppearance
Whether the progress bar's appearance is inverted
See QStyleOptionProgressBar::setInvertedAppearance(bool invertedAppearance)
-
invertedAppearance
Whether the progress bar's appearance is inverted
-
setMaximum
The maximum value for the progress bar
-
maximum
The maximum value for the progress bar
-
setTextAlignment
Overloaded function for
setTextAlignment(io.qt.core.Qt.Alignment)
. -
setTextAlignment
The text alignment for the text in the QProgressBar
See QStyleOptionProgressBar::setTextAlignment(QFlags<Qt::AlignmentFlag> textAlignment)
-
textAlignment
The text alignment for the text in the QProgressBar
-
setMinimum
The minimum value for the progress bar
-
minimum
The minimum value for the progress bar
-
setText
The text for the progress bar
-
text
The text for the progress bar
-
setOrientation
The progress bar's orientation (horizontal or vertical); the default orentation is Qt::Horizontal
See QStyleOptionProgressBar::setOrientation(Qt::Orientation orientation)
-
orientation
The progress bar's orientation (horizontal or vertical); the default orentation is Qt::Horizontal
-
setBottomToTop
Whether the text reads from bottom to top when the progress bar is vertical
See QStyleOptionProgressBar::setBottomToTop(bool bottomToTop)
-
bottomToTop
Whether the text reads from bottom to top when the progress bar is vertical
-
setProgress
The current progress for the progress bar
-
progress
The current progress for the progress bar
-
setTextVisible
Flag indicating whether or not text is visible
See QStyleOptionProgressBar::setTextVisible(bool textVisible)
-
textVisible
Flag indicating whether or not text is visible
-
clone
- Overrides:
clone
in classQStyleOption
-