PythonQt.QtGui.QGradient · declarations 001
Back to PythonQt.QtGui.QGradient
coordinateMode
coordinateMode() -> Any
X.coordinateMode()
Supplemental documentation: Qt 5 reference:
QGradient::CoordinateMode QGradient::coordinateMode() const
Returns the coordinate mode of this gradient. The default mode is LogicalMode.
This function was introduced in Qt 4.4.
See also setCoordinateMode().
Upstream PySide2 reference signatures (binding differences may apply):
coordinateMode(self) -> PySide2.QtGui.QGradient.CoordinateMode
Source: https://doc.qt.io/archives/qt-5.15/qgradient.html#coordinateMode
setColorAt
setColorAt(pos: float, color: Any) -> None
X.setColorAt(pos, color)
Supplemental documentation: Qt 5 reference:
void QGradient::setColorAt(qreal position, const QColor \&color)
Creates a stop point at the given position with the given color. The given position must be in the range 0 to 1.
See also setStops() and stops().
Upstream PySide2 reference signatures (binding differences may apply):
setColorAt(self, pos: float, color: PySide2.QtGui.QColor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgradient.html#setColorAt
setCoordinateMode
setCoordinateMode(mode: Any) -> None
X.setCoordinateMode(mode)
Supplemental documentation: Qt 5 reference:
void QGradient::setCoordinateMode(QGradient::CoordinateMode mode)
Sets the coordinate mode of this gradient to mode. The default mode is LogicalMode.
This function was introduced in Qt 4.4.
See also coordinateMode().
Upstream PySide2 reference signatures (binding differences may apply):
setCoordinateMode(self, mode: PySide2.QtGui.QGradient.CoordinateMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgradient.html#setCoordinateMode
setSpread
setSpread(spread: Any) -> None
X.setSpread(spread)
Supplemental documentation: Qt 5 reference:
void QGradient::setSpread(QGradient::Spread method)
Specifies the spread method that should be used for this gradient.
Note that this function only has effect for linear and radial gradients.
See also spread().
Upstream PySide2 reference signatures (binding differences may apply):
setSpread(self, spread: PySide2.QtGui.QGradient.Spread) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgradient.html#setSpread
setStops
setStops(stops: Any) -> None
X.setStops(stops)
Supplemental documentation: Qt 5 reference:
void QGradient::setStops(const QGradientStops \&stopPoints)
Replaces the current set of stop points with the given stopPoints. The positions of the points must be in the range 0 to 1, and must be sorted with the lowest point first.
See also setColorAt() and stops().
Upstream PySide2 reference signatures (binding differences may apply):
setStops(self, stops: typing.List[typing.Tuple[float, PySide2.QtGui.QColor]]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgradient.html#setStops
spread
spread() -> Any
X.spread()
Supplemental documentation: Qt 5 reference:
QGradient::Spread QGradient::spread() const
Returns the spread method use by this gradient. The default is PadSpread.
See also setSpread().
Upstream PySide2 reference signatures (binding differences may apply):
spread(self) -> PySide2.QtGui.QGradient.Spread
Source: https://doc.qt.io/archives/qt-5.15/qgradient.html#spread
stops
stops() -> tuple
X.stops() -> tuple
Supplemental documentation: Qt 5 reference:
QGradientStops QGradient::stops() const
Returns the stop points for this gradient.
If no stop points have been specified, a gradient of black at 0 to white at 1 is used.
See also setStops() and setColorAt().
Upstream PySide2 reference signatures (binding differences may apply):
stops(self) -> typing.List[typing.Tuple[float, PySide2.QtGui.QColor]]
Source: https://doc.qt.io/archives/qt-5.15/qgradient.html#stops
type
type() -> Any
X.type()
Supplemental documentation: Qt 5 reference:
QGradient::Type QGradient::type() const
Returns the type of gradient.
Upstream PySide2 reference signatures (binding differences may apply):
type(self) -> PySide2.QtGui.QGradient.Type
Source: https://doc.qt.io/archives/qt-5.15/qgradient.html#type