Skip to content

PythonQt.QtGui.QConicalGradient · declarations 001

Back to PythonQt.QtGui.QConicalGradient

ConicalGradient instance-attribute

ConicalGradient: Any

CoordinateMode instance-attribute

CoordinateMode: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

LinearGradient instance-attribute

LinearGradient: Any

LogicalMode instance-attribute

LogicalMode: Any

NoGradient instance-attribute

NoGradient: Any

ObjectBoundingMode instance-attribute

ObjectBoundingMode: Any

PadSpread instance-attribute

PadSpread: Any

RadialGradient instance-attribute

RadialGradient: Any

ReflectSpread instance-attribute

ReflectSpread: Any

RepeatSpread instance-attribute

RepeatSpread: Any

Spread instance-attribute

Spread: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

StretchToDeviceMode instance-attribute

StretchToDeviceMode: Any

angle

angle() -> float

X.angle() -> float

Supplemental documentation: Qt 5 reference:

qreal QConicalGradient::angle() const

Returns the start angle of the conical gradient in logical coordinates.

See also setAngle() and stops().

Upstream PySide2 reference signatures (binding differences may apply):

angle(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qconicalgradient.html#angle

center

center() -> Any

X.center() -> PythonQt.QtCore.QPointF

Supplemental documentation: Qt 5 reference:

QPointF QConicalGradient::center() const

Returns the center of the conical gradient in logical coordinates.

See also setCenter() and stops().

Upstream PySide2 reference signatures (binding differences may apply):

center(self) -> PySide2.QtCore.QPointF

Source: https://doc.qt.io/archives/qt-5.15/qconicalgradient.html#center

coordinateMode

coordinateMode() -> Any

X.coordinateMode()

setAngle

setAngle(angle: float) -> None

X.setAngle(angle)

Supplemental documentation: Qt 5 reference:

void QConicalGradient::setAngle(qreal angle)

Sets angle to be the start angle for this conical gradient in logical coordinates.

This function was introduced in Qt 4.2.

See also angle().

Upstream PySide2 reference signatures (binding differences may apply):

setAngle(self, angle: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qconicalgradient.html#setAngle

setCenter

setCenter(x: Any, y: Any) -> None

X.setCenter(x, y)

Supplemental documentation: Qt 5 reference:

void QConicalGradient::setCenter(const QPointF \&center)

Sets the center of this conical gradient in logical coordinates to center.

See also center().

void QConicalGradient::setCenter(qreal x, qreal y)

This is an overloaded function.

Sets the center of this conical gradient in logical coordinates to (x, y).

See also center().

Upstream PySide2 reference signatures (binding differences may apply):

setCenter(self, center: PySide2.QtCore.QPointF) -> None
setCenter(self, x: float, y: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qconicalgradient.html#setCenter

setColorAt

setColorAt(pos: Any, color: Any) -> Any

X.setColorAt(pos, color)

setCoordinateMode

setCoordinateMode(mode: Any) -> Any

X.setCoordinateMode(mode)

setSpread

setSpread(spread: Any) -> Any

X.setSpread(spread)

setStops

setStops(stops: Any) -> Any

X.setStops(stops)

spread

spread() -> Any

X.spread()

stops

stops() -> tuple

X.stops() -> tuple