[][src]Struct qt_widgets::QSlider

#[repr(C)]pub struct QSlider { /* fields omitted */ }

The QSlider widget provides a vertical or horizontal slider.

C++ class: QSlider.

C++ documentation:

The QSlider widget provides a vertical or horizontal slider.

The slider is the classic widget for controlling a bounded value. It lets the user move a slider handle along a horizontal or vertical groove and translates the handle's position into an integer value within the legal range.

QSlider has very few of its own functions; most of the functionality is in QAbstractSlider. The most useful functions are setValue() to set the slider directly to some value; triggerAction() to simulate the effects of clicking (useful for shortcut keys); setSingleStep(), setPageStep() to set the steps; and setMinimum() and setMaximum() to define the range of the scroll bar.

QSlider provides methods for controlling tickmarks. You can use setTickPosition() to indicate where you want the tickmarks to be, setTickInterval() to indicate how many of them you want. the currently set tick position and interval can be queried using the tickPosition() and tickInterval() functions, respectively.

QSlider inherits a comprehensive set of signals:

SignalDescription
valueChanged()Emitted when the slider's value has changed. The tracking() determines whether this signal is emitted during user interaction.
sliderPressed()Emitted when the user starts to drag the slider.
sliderMoved()Emitted when the user drags the slider.
sliderReleased()Emitted when the user releases the slider.

QSlider only provides integer ranges. Note that although QSlider handles very large numbers, it becomes difficult for users to use a slider accurately for very large ranges.

A slider accepts focus on Tab and provides both a mouse wheel and a keyboard interface. The keyboard interface is the following:

  • Left/Right move a horizontal slider by one single step.
  • Up/Down move a vertical slider by one single step.
  • PageUp moves up one page.
  • PageDown moves down one page.
  • Home moves to the start (mininum).
  • End moves to the end (maximum).

Methods

impl QSlider[src]

pub unsafe fn event(&self, event: impl CastInto<Ptr<QEvent>>) -> bool[src]

Reimplemented from QObject::event().

Calls C++ function: virtual bool QSlider::event(QEvent* event).

C++ documentation:

Reimplemented from QObject::event().

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QSlider::metaObject() const.

pub unsafe fn minimum_size_hint(&self) -> CppBox<QSize>[src]

Reimplemented from QWidget::minimumSizeHint().

Calls C++ function: virtual QSize QSlider::minimumSizeHint() const.

C++ documentation:

Reimplemented from QWidget::minimumSizeHint().

pub unsafe fn from_q_widget(
    parent: impl CastInto<Ptr<QWidget>>
) -> QBox<QSlider>
[src]

Constructs a vertical slider with the given parent.

Calls C++ function: [constructor] void QSlider::QSlider(QWidget* parent = …).

C++ documentation:

Constructs a vertical slider with the given parent.

pub unsafe fn from_orientation_q_widget(
    orientation: Orientation,
    parent: impl CastInto<Ptr<QWidget>>
) -> QBox<QSlider>
[src]

Constructs a slider with the given parent. The orientation parameter determines whether the slider is horizontal or vertical; the valid values are Qt::Vertical and Qt::Horizontal.

Calls C++ function: [constructor] void QSlider::QSlider(Qt::Orientation orientation, QWidget* parent = …).

C++ documentation:

Constructs a slider with the given parent. The orientation parameter determines whether the slider is horizontal or vertical; the valid values are Qt::Vertical and Qt::Horizontal.

pub unsafe fn new() -> QBox<QSlider>[src]

The QSlider widget provides a vertical or horizontal slider.

Calls C++ function: [constructor] void QSlider::QSlider().

C++ documentation:

The QSlider widget provides a vertical or horizontal slider.

The slider is the classic widget for controlling a bounded value. It lets the user move a slider handle along a horizontal or vertical groove and translates the handle's position into an integer value within the legal range.

QSlider has very few of its own functions; most of the functionality is in QAbstractSlider. The most useful functions are setValue() to set the slider directly to some value; triggerAction() to simulate the effects of clicking (useful for shortcut keys); setSingleStep(), setPageStep() to set the steps; and setMinimum() and setMaximum() to define the range of the scroll bar.

QSlider provides methods for controlling tickmarks. You can use setTickPosition() to indicate where you want the tickmarks to be, setTickInterval() to indicate how many of them you want. the currently set tick position and interval can be queried using the tickPosition() and tickInterval() functions, respectively.

QSlider inherits a comprehensive set of signals:

SignalDescription
valueChanged()Emitted when the slider's value has changed. The tracking() determines whether this signal is emitted during user interaction.
sliderPressed()Emitted when the user starts to drag the slider.
sliderMoved()Emitted when the user drags the slider.
sliderReleased()Emitted when the user releases the slider.

QSlider only provides integer ranges. Note that although QSlider handles very large numbers, it becomes difficult for users to use a slider accurately for very large ranges.

A slider accepts focus on Tab and provides both a mouse wheel and a keyboard interface. The keyboard interface is the following:

  • Left/Right move a horizontal slider by one single step.
  • Up/Down move a vertical slider by one single step.
  • PageUp moves up one page.
  • PageDown moves down one page.
  • Home moves to the start (mininum).
  • End moves to the end (maximum).

pub unsafe fn from_orientation(orientation: Orientation) -> QBox<QSlider>[src]

Constructs a slider with the given parent. The orientation parameter determines whether the slider is horizontal or vertical; the valid values are Qt::Vertical and Qt::Horizontal.

Calls C++ function: [constructor] void QSlider::QSlider(Qt::Orientation orientation).

C++ documentation:

Constructs a slider with the given parent. The orientation parameter determines whether the slider is horizontal or vertical; the valid values are Qt::Vertical and Qt::Horizontal.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int QSlider::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* QSlider::qt_metacast(const char* arg1).

pub unsafe fn set_tick_interval(&self, ti: c_int)[src]

This property holds the interval between tickmarks

Calls C++ function: void QSlider::setTickInterval(int ti).

C++ documentation:

This property holds the interval between tickmarks

This is a value interval, not a pixel interval. If it is 0, the slider will choose between singleStep and pageStep.

The default value is 0.

Access functions:

int tickInterval() const
void setTickInterval(int ti)

See also tickPosition, singleStep, and pageStep.

pub unsafe fn set_tick_position(&self, position: TickPosition)[src]

This property holds the tickmark position for this slider

Calls C++ function: void QSlider::setTickPosition(QSlider::TickPosition position).

C++ documentation:

This property holds the tickmark position for this slider

The valid values are described by the QSlider::TickPosition enum.

The default value is QSlider::NoTicks.

Access functions:

TickPosition tickPosition() const
void setTickPosition(TickPosition position)

See also tickInterval.

pub unsafe fn size_hint(&self) -> CppBox<QSize>[src]

Reimplemented from QWidget::sizeHint().

Calls C++ function: virtual QSize QSlider::sizeHint() const.

C++ documentation:

Reimplemented from QWidget::sizeHint().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tick_interval(&self) -> c_int[src]

This property holds the interval between tickmarks

Calls C++ function: int QSlider::tickInterval() const.

C++ documentation:

This property holds the interval between tickmarks

This is a value interval, not a pixel interval. If it is 0, the slider will choose between singleStep and pageStep.

The default value is 0.

Access functions:

int tickInterval() const
void setTickInterval(int ti)

See also tickPosition, singleStep, and pageStep.

pub unsafe fn tick_position(&self) -> TickPosition[src]

This property holds the tickmark position for this slider

Calls C++ function: QSlider::TickPosition QSlider::tickPosition() const.

C++ documentation:

This property holds the tickmark position for this slider

The valid values are described by the QSlider::TickPosition enum.

The default value is QSlider::NoTicks.

Access functions:

TickPosition tickPosition() const
void setTickPosition(TickPosition position)

See also tickInterval.

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QSlider::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QSlider::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QAbstractSlider>

pub fn slot_set_value(&self) -> Receiver<(c_int,)>[src]

This property holds the slider's current value

Returns a built-in Qt slot QAbstractSlider::setValue that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds the slider's current value

The slider forces the value to be within the legal range: minimum <= value <= maximum.

Changing the value also changes the sliderPosition.

Access functions:

int value() const
void setValue(int)

Notifier signal:

void valueChanged(int value)

pub fn slot_set_orientation(&self) -> Receiver<(Orientation,)>[src]

This property holds the orientation of the slider

Returns a built-in Qt slot QAbstractSlider::setOrientation that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds the orientation of the slider

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

Access functions:

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

pub fn slot_set_range(&self) -> Receiver<(c_int, c_int)>[src]

Sets the slider's minimum to min and its maximum to max.

Returns a built-in Qt slot QAbstractSlider::setRange that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the slider's minimum to min and its maximum to max.

If max is smaller than min, min becomes the only legal value.

See also minimum and maximum.

pub fn value_changed(&self) -> Signal<(c_int,)>[src]

This signal is emitted when the slider value has changed, with the new slider value as argument.

Returns a built-in Qt signal QAbstractSlider::valueChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the slider value has changed, with the new slider value as argument.

Note: Notifier signal for property value.

pub fn slider_pressed(&self) -> Signal<()>[src]

This signal is emitted when the user presses the slider with the mouse, or programmatically when setSliderDown(true) is called.

Returns a built-in Qt signal QAbstractSlider::sliderPressed that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the user presses the slider with the mouse, or programmatically when setSliderDown(true) is called.

See also sliderReleased(), sliderMoved(), and isSliderDown().

pub fn slider_moved(&self) -> Signal<(c_int,)>[src]

This signal is emitted when sliderDown is true and the slider moves. This usually happens when the user is dragging the slider. The value is the new slider position.

Returns a built-in Qt signal QAbstractSlider::sliderMoved that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when sliderDown is true and the slider moves. This usually happens when the user is dragging the slider. The value is the new slider position.

This signal is emitted even when tracking is turned off.

Note: Notifier signal for property sliderPosition.

See also setTracking(), valueChanged(), isSliderDown(), sliderPressed(), and sliderReleased().

pub fn slider_released(&self) -> Signal<()>[src]

This signal is emitted when the user releases the slider with the mouse, or programmatically when setSliderDown(false) is called.

Returns a built-in Qt signal QAbstractSlider::sliderReleased that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the user releases the slider with the mouse, or programmatically when setSliderDown(false) is called.

See also sliderPressed(), sliderMoved(), and sliderDown.

pub fn range_changed(&self) -> Signal<(c_int, c_int)>[src]

This signal is emitted when the slider range has changed, with min being the new minimum, and max being the new maximum.

Returns a built-in Qt signal QAbstractSlider::rangeChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the slider range has changed, with min being the new minimum, and max being the new maximum.

See also minimum and maximum.

pub fn action_triggered(&self) -> Signal<(c_int,)>[src]

This signal is emitted when the slider action action is triggered. Actions are SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, SliderPageStepSub, SliderToMinimum, SliderToMaximum, and SliderMove.

Returns a built-in Qt signal QAbstractSlider::actionTriggered that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the slider action action is triggered. Actions are SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, SliderPageStepSub, SliderToMinimum, SliderToMaximum, and SliderMove.

When the signal is emitted, the sliderPosition has been adjusted according to the action, but the value has not yet been propagated (meaning the valueChanged() signal was not yet emitted), and the visual display has not been updated. In slots connected to this signal you can thus safely adjust any action by calling setSliderPosition() yourself, based on both the action and the slider's value.

See also triggerAction().

pub unsafe fn has_tracking(&self) -> bool[src]

This property holds whether slider tracking is enabled

Calls C++ function: bool QAbstractSlider::hasTracking() const.

C++ documentation:

This property holds whether slider tracking is enabled

If tracking is enabled (the default), the slider emits the valueChanged() signal while the slider is being dragged. If tracking is disabled, the slider emits the valueChanged() signal only when the user releases the slider.

Access functions:

bool hasTracking() const
void setTracking(bool enable)

See also sliderDown.

pub unsafe fn inverted_appearance(&self) -> bool[src]

This property holds whether or not a slider shows its values inverted.

Calls C++ function: bool QAbstractSlider::invertedAppearance() const.

C++ documentation:

This property holds whether or not a slider shows its values inverted.

If this property is false (the default), the minimum and maximum will be shown in its classic position for the inherited widget. If the value is true, the minimum and maximum appear at their opposite location.

Note: This property makes most sense for sliders and dials. For scroll bars, the visual effect of the scroll bar subcontrols depends on whether or not the styles understand inverted appearance; most styles ignore this property for scroll bars.

Access functions:

bool invertedAppearance() const
void setInvertedAppearance(bool)

pub unsafe fn inverted_controls(&self) -> bool[src]

This property holds whether or not the slider inverts its wheel and key events.

Calls C++ function: bool QAbstractSlider::invertedControls() const.

C++ documentation:

This property holds whether or not the slider inverts its wheel and key events.

If this property is false, scrolling the mouse wheel "up" and using keys like page up will increase the slider's value towards its maximum. Otherwise pressing page up will move value towards the slider's minimum.

Access functions:

bool invertedControls() const
void setInvertedControls(bool)

pub unsafe fn is_slider_down(&self) -> bool[src]

This property holds whether the slider is pressed down.

Calls C++ function: bool QAbstractSlider::isSliderDown() const.

C++ documentation:

This property holds whether the slider is pressed down.

The property is set by subclasses in order to let the abstract slider know whether or not tracking has any effect.

Changing the slider down property emits the sliderPressed() and sliderReleased() signals.

Access functions:

bool isSliderDown() const
void setSliderDown(bool)

pub unsafe fn maximum(&self) -> c_int[src]

This property holds the slider's maximum value

Calls C++ function: int QAbstractSlider::maximum() const.

C++ documentation:

This property holds the slider's maximum value

When setting this property, the minimum is adjusted if necessary to ensure that the range remains valid. Also the slider's current value is adjusted to be within the new range.

Access functions:

int maximum() const
void setMaximum(int)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QAbstractSlider::metaObject() const.

pub unsafe fn minimum(&self) -> c_int[src]

This property holds the sliders's minimum value

Calls C++ function: int QAbstractSlider::minimum() const.

C++ documentation:

This property holds the sliders's minimum value

When setting this property, the maximum is adjusted if necessary to ensure that the range remains valid. Also the slider's current value is adjusted to be within the new range.

Access functions:

int minimum() const
void setMinimum(int)

pub unsafe fn orientation(&self) -> Orientation[src]

This property holds the orientation of the slider

Calls C++ function: Qt::Orientation QAbstractSlider::orientation() const.

C++ documentation:

This property holds the orientation of the slider

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

Access functions:

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

pub unsafe fn page_step(&self) -> c_int[src]

This property holds the page step.

Calls C++ function: int QAbstractSlider::pageStep() const.

C++ documentation:

This property holds the page step.

The larger of two natural steps that an abstract slider provides and typically corresponds to the user pressing PageUp or PageDown.

Access functions:

int pageStep() const
void setPageStep(int)

See also singleStep.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int QAbstractSlider::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* QAbstractSlider::qt_metacast(const char* arg1).

pub unsafe fn set_inverted_appearance(&self, arg1: bool)[src]

This property holds whether or not a slider shows its values inverted.

Calls C++ function: void QAbstractSlider::setInvertedAppearance(bool arg1).

C++ documentation:

This property holds whether or not a slider shows its values inverted.

If this property is false (the default), the minimum and maximum will be shown in its classic position for the inherited widget. If the value is true, the minimum and maximum appear at their opposite location.

Note: This property makes most sense for sliders and dials. For scroll bars, the visual effect of the scroll bar subcontrols depends on whether or not the styles understand inverted appearance; most styles ignore this property for scroll bars.

Access functions:

bool invertedAppearance() const
void setInvertedAppearance(bool)

pub unsafe fn set_inverted_controls(&self, arg1: bool)[src]

This property holds whether or not the slider inverts its wheel and key events.

Calls C++ function: void QAbstractSlider::setInvertedControls(bool arg1).

C++ documentation:

This property holds whether or not the slider inverts its wheel and key events.

If this property is false, scrolling the mouse wheel "up" and using keys like page up will increase the slider's value towards its maximum. Otherwise pressing page up will move value towards the slider's minimum.

Access functions:

bool invertedControls() const
void setInvertedControls(bool)

pub unsafe fn set_maximum(&self, arg1: c_int)[src]

This property holds the slider's maximum value

Calls C++ function: void QAbstractSlider::setMaximum(int arg1).

C++ documentation:

This property holds the slider's maximum value

When setting this property, the minimum is adjusted if necessary to ensure that the range remains valid. Also the slider's current value is adjusted to be within the new range.

Access functions:

int maximum() const
void setMaximum(int)

pub unsafe fn set_minimum(&self, arg1: c_int)[src]

This property holds the sliders's minimum value

Calls C++ function: void QAbstractSlider::setMinimum(int arg1).

C++ documentation:

This property holds the sliders's minimum value

When setting this property, the maximum is adjusted if necessary to ensure that the range remains valid. Also the slider's current value is adjusted to be within the new range.

Access functions:

int minimum() const
void setMinimum(int)

pub unsafe fn set_orientation(&self, arg1: Orientation)[src]

This property holds the orientation of the slider

Calls C++ function: [slot] void QAbstractSlider::setOrientation(Qt::Orientation arg1).

C++ documentation:

This property holds the orientation of the slider

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

Access functions:

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

pub unsafe fn set_page_step(&self, arg1: c_int)[src]

This property holds the page step.

Calls C++ function: void QAbstractSlider::setPageStep(int arg1).

C++ documentation:

This property holds the page step.

The larger of two natural steps that an abstract slider provides and typically corresponds to the user pressing PageUp or PageDown.

Access functions:

int pageStep() const
void setPageStep(int)

See also singleStep.

pub unsafe fn set_range(&self, min: c_int, max: c_int)[src]

Sets the slider's minimum to min and its maximum to max.

Calls C++ function: [slot] void QAbstractSlider::setRange(int min, int max).

C++ documentation:

Sets the slider's minimum to min and its maximum to max.

If max is smaller than min, min becomes the only legal value.

See also minimum and maximum.

pub unsafe fn set_single_step(&self, arg1: c_int)[src]

This property holds the single step.

Calls C++ function: void QAbstractSlider::setSingleStep(int arg1).

C++ documentation:

This property holds the single step.

The smaller of two natural steps that an abstract sliders provides and typically corresponds to the user pressing an arrow key.

If the property is modified during an auto repeating key event, behavior is undefined.

Access functions:

int singleStep() const
void setSingleStep(int)

See also pageStep.

pub unsafe fn set_slider_down(&self, arg1: bool)[src]

This property holds whether the slider is pressed down.

Calls C++ function: void QAbstractSlider::setSliderDown(bool arg1).

C++ documentation:

This property holds whether the slider is pressed down.

The property is set by subclasses in order to let the abstract slider know whether or not tracking has any effect.

Changing the slider down property emits the sliderPressed() and sliderReleased() signals.

Access functions:

bool isSliderDown() const
void setSliderDown(bool)

pub unsafe fn set_slider_position(&self, arg1: c_int)[src]

This property holds the current slider position

Calls C++ function: void QAbstractSlider::setSliderPosition(int arg1).

C++ documentation:

This property holds the current slider position

If tracking is enabled (the default), this is identical to value.

Access functions:

int sliderPosition() const
void setSliderPosition(int)

Notifier signal:

void sliderMoved(int value)

pub unsafe fn set_tracking(&self, enable: bool)[src]

This property holds whether slider tracking is enabled

Calls C++ function: void QAbstractSlider::setTracking(bool enable).

C++ documentation:

This property holds whether slider tracking is enabled

If tracking is enabled (the default), the slider emits the valueChanged() signal while the slider is being dragged. If tracking is disabled, the slider emits the valueChanged() signal only when the user releases the slider.

Access functions:

bool hasTracking() const
void setTracking(bool enable)

See also sliderDown.

pub unsafe fn set_value(&self, arg1: c_int)[src]

This property holds the slider's current value

Calls C++ function: [slot] void QAbstractSlider::setValue(int arg1).

C++ documentation:

This property holds the slider's current value

The slider forces the value to be within the legal range: minimum <= value <= maximum.

Changing the value also changes the sliderPosition.

Access functions:

int value() const
void setValue(int)

Notifier signal:

void valueChanged(int value)

pub unsafe fn single_step(&self) -> c_int[src]

This property holds the single step.

Calls C++ function: int QAbstractSlider::singleStep() const.

C++ documentation:

This property holds the single step.

The smaller of two natural steps that an abstract sliders provides and typically corresponds to the user pressing an arrow key.

If the property is modified during an auto repeating key event, behavior is undefined.

Access functions:

int singleStep() const
void setSingleStep(int)

See also pageStep.

pub unsafe fn slider_position(&self) -> c_int[src]

This property holds the current slider position

Calls C++ function: int QAbstractSlider::sliderPosition() const.

C++ documentation:

This property holds the current slider position

If tracking is enabled (the default), this is identical to value.

Access functions:

int sliderPosition() const
void setSliderPosition(int)

Notifier signal:

void sliderMoved(int value)

pub unsafe fn trigger_action(&self, action: SliderAction)[src]

Triggers a slider action. Possible actions are SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, SliderPageStepSub, SliderToMinimum, SliderToMaximum, and SliderMove.

Calls C++ function: void QAbstractSlider::triggerAction(QAbstractSlider::SliderAction action).

C++ documentation:

Triggers a slider action. Possible actions are SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, SliderPageStepSub, SliderToMinimum, SliderToMaximum, and SliderMove.

See also actionTriggered().

pub unsafe fn value(&self) -> c_int[src]

This property holds the slider's current value

Calls C++ function: int QAbstractSlider::value() const.

C++ documentation:

This property holds the slider's current value

The slider forces the value to be within the legal range: minimum <= value <= maximum.

Changing the value also changes the sliderPosition.

Access functions:

int value() const
void setValue(int)

Notifier signal:

void valueChanged(int value)

Trait Implementations

impl CppDeletable for QSlider[src]

unsafe fn delete(&self)[src]

Destroys this slider.

Calls C++ function: virtual [destructor] void QSlider::~QSlider().

C++ documentation:

Destroys this slider.

impl Deref for QSlider[src]

type Target = QAbstractSlider

The resulting type after dereferencing.

fn deref(&self) -> &QAbstractSlider[src]

Calls C++ function: QAbstractSlider* static_cast<QAbstractSlider*>(QSlider* ptr).

impl DynamicCast<QSlider> for QAbstractSlider[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractSlider>) -> Ptr<QSlider>[src]

Calls C++ function: QSlider* dynamic_cast<QSlider*>(QAbstractSlider* ptr).

impl DynamicCast<QSlider> for QWidget[src]

unsafe fn dynamic_cast(ptr: Ptr<QWidget>) -> Ptr<QSlider>[src]

Calls C++ function: QSlider* dynamic_cast<QSlider*>(QWidget* ptr).

impl DynamicCast<QSlider> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QSlider>[src]

Calls C++ function: QSlider* dynamic_cast<QSlider*>(QObject* ptr).

impl DynamicCast<QSlider> for QPaintDevice[src]

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QSlider>[src]

Calls C++ function: QSlider* dynamic_cast<QSlider*>(QPaintDevice* ptr).

impl StaticDowncast<QSlider> for QAbstractSlider[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractSlider>) -> Ptr<QSlider>[src]

Calls C++ function: QSlider* static_cast<QSlider*>(QAbstractSlider* ptr).

impl StaticDowncast<QSlider> for QWidget[src]

unsafe fn static_downcast(ptr: Ptr<QWidget>) -> Ptr<QSlider>[src]

Calls C++ function: QSlider* static_cast<QSlider*>(QWidget* ptr).

impl StaticDowncast<QSlider> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QSlider>[src]

Calls C++ function: QSlider* static_cast<QSlider*>(QObject* ptr).

impl StaticDowncast<QSlider> for QPaintDevice[src]

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QSlider>[src]

Calls C++ function: QSlider* static_cast<QSlider*>(QPaintDevice* ptr).

impl StaticUpcast<QAbstractSlider> for QSlider[src]

unsafe fn static_upcast(ptr: Ptr<QSlider>) -> Ptr<QAbstractSlider>[src]

Calls C++ function: QAbstractSlider* static_cast<QAbstractSlider*>(QSlider* ptr).

impl StaticUpcast<QObject> for QSlider[src]

unsafe fn static_upcast(ptr: Ptr<QSlider>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QSlider* ptr).

impl StaticUpcast<QPaintDevice> for QSlider[src]

unsafe fn static_upcast(ptr: Ptr<QSlider>) -> Ptr<QPaintDevice>[src]

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QSlider* ptr).

impl StaticUpcast<QWidget> for QSlider[src]

unsafe fn static_upcast(ptr: Ptr<QSlider>) -> Ptr<QWidget>[src]

Calls C++ function: QWidget* static_cast<QWidget*>(QSlider* ptr).

Auto Trait Implementations

impl RefUnwindSafe for QSlider

impl Send for QSlider

impl Sync for QSlider

impl Unpin for QSlider

impl UnwindSafe for QSlider

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.