[][src]Struct qt_widgets::QLCDNumber

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

The QLCDNumber widget displays a number with LCD-like digits.

C++ class: QLCDNumber.

C++ documentation:

The QLCDNumber widget displays a number with LCD-like digits.

It can display a number in just about any size. It can display decimal, hexadecimal, octal or binary numbers. It is easy to connect to data sources using the display() slot, which is overloaded to take any of five argument types.

There are also slots to change the base with setMode() and the decimal point with setSmallDecimalPoint().

QLCDNumber emits the overflow() signal when it is asked to display something beyond its range. The range is set by setDigitCount(), but setSmallDecimalPoint() also influences it. If the display is set to hexadecimal, octal or binary, the integer equivalent of the value is displayed.

These digits and other symbols can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, colon, degree sign (which is specified as single quote in the string) and space. QLCDNumber substitutes spaces for illegal characters.

It is not possible to retrieve the contents of a QLCDNumber object, although you can retrieve the numeric value with value(). If you really need the text, we recommend that you connect the signals that feed the display() slot to another slot as well and store the value there.

Incidentally, QLCDNumber is the very oldest part of Qt, tracing its roots back to a BASIC program on the Sinclair Spectrum.

Methods

impl QLCDNumber[src]

pub fn slot_display(&self) -> Receiver<(*const QString,)>[src]

Displays the number represented by the string s.

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

C++ documentation:

Displays the number represented by the string s.

This version of the function disregards mode() and smallDecimalPoint().

These digits and other symbols can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, colon, degree sign (which is specified as single quote in the string) and space. QLCDNumber substitutes spaces for illegal characters.

Note: Setter function for property intValue. Setter function for property value.

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

This is an overloaded function.

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

C++ documentation:

This is an overloaded function.

Displays the number num.

Note: Setter function for property intValue. Setter function for property value.

pub fn slot_display3(&self) -> Receiver<(c_double,)>[src]

This is an overloaded function.

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

C++ documentation:

This is an overloaded function.

Displays the number num.

Note: Setter function for property intValue. Setter function for property value.

pub fn slot_set_hex_mode(&self) -> Receiver<()>[src]

Calls setMode(Hex). Provided for convenience (e.g. for connecting buttons to it).

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

C++ documentation:

Calls setMode(Hex). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setDecMode(), setOctMode(), setBinMode(), and mode().

pub fn slot_set_dec_mode(&self) -> Receiver<()>[src]

Calls setMode(Dec). Provided for convenience (e.g. for connecting buttons to it).

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

C++ documentation:

Calls setMode(Dec). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setHexMode(), setOctMode(), setBinMode(), and mode().

pub fn slot_set_oct_mode(&self) -> Receiver<()>[src]

Calls setMode(Oct). Provided for convenience (e.g. for connecting buttons to it).

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

C++ documentation:

Calls setMode(Oct). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setHexMode(), setDecMode(), setBinMode(), and mode().

pub fn slot_set_bin_mode(&self) -> Receiver<()>[src]

Calls setMode(Bin). Provided for convenience (e.g. for connecting buttons to it).

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

C++ documentation:

Calls setMode(Bin). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setHexMode(), setDecMode(), setOctMode(), and mode().

pub fn slot_set_small_decimal_point(&self) -> Receiver<(bool,)>[src]

This property holds the style of the decimal point

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

C++ documentation:

This property holds the style of the decimal point

If true the decimal point is drawn between two digit positions. Otherwise it occupies a digit position of its own, i.e. is drawn in a digit position. The default is false.

The inter-digit space is made slightly wider when the decimal point is drawn between the digits.

Access functions:

bool smallDecimalPoint() const
void setSmallDecimalPoint(bool)

See also mode.

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

This signal is emitted whenever the QLCDNumber is asked to display a too-large number or a too-long string.

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

C++ documentation:

This signal is emitted whenever the QLCDNumber is asked to display a too-large number or a too-long string.

It is never emitted by setDigitCount().

pub unsafe fn check_overflow_double(&self, num: c_double) -> bool[src]

Returns true if num is too big to be displayed in its entirety; otherwise returns false.

Calls C++ function: bool QLCDNumber::checkOverflow(double num) const.

C++ documentation:

Returns true if num is too big to be displayed in its entirety; otherwise returns false.

See also display(), digitCount(), and smallDecimalPoint().

pub unsafe fn check_overflow_int(&self, num: c_int) -> bool[src]

This is an overloaded function.

Calls C++ function: bool QLCDNumber::checkOverflow(int num) const.

C++ documentation:

This is an overloaded function.

Returns true if num is too big to be displayed in its entirety; otherwise returns false.

See also display(), digitCount(), and smallDecimalPoint().

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

This property holds the current number of digits displayed

Calls C++ function: int QLCDNumber::digitCount() const.

C++ documentation:

This property holds the current number of digits displayed

Corresponds to the current number of digits. If QLCDNumber::smallDecimalPoint is false, the decimal point occupies one digit position.

By default, this property contains a value of 5.

This property was introduced in Qt 4.6.

Access functions:

int digitCount() const
void setDigitCount(int numDigits)

See also smallDecimalPoint.

pub unsafe fn display_q_string(&self, str: impl CastInto<Ref<QString>>)[src]

Displays the number represented by the string s.

Calls C++ function: [slot] void QLCDNumber::display(const QString& str).

C++ documentation:

Displays the number represented by the string s.

This version of the function disregards mode() and smallDecimalPoint().

These digits and other symbols can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, colon, degree sign (which is specified as single quote in the string) and space. QLCDNumber substitutes spaces for illegal characters.

Note: Setter function for property intValue. Setter function for property value.

pub unsafe fn display_int(&self, num: c_int)[src]

This is an overloaded function.

Calls C++ function: [slot] void QLCDNumber::display(int num).

C++ documentation:

This is an overloaded function.

Displays the number num.

Note: Setter function for property intValue. Setter function for property value.

pub unsafe fn display_double(&self, num: c_double)[src]

This is an overloaded function.

Calls C++ function: [slot] void QLCDNumber::display(double num).

C++ documentation:

This is an overloaded function.

Displays the number num.

Note: Setter function for property intValue. Setter function for property value.

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

This property holds the displayed value rounded to the nearest integer

Calls C++ function: int QLCDNumber::intValue() const.

C++ documentation:

This property holds the displayed value rounded to the nearest integer

This property corresponds to the nearest integer to the current value displayed by the LCDNumber. This is the value used for hexadecimal, octal and binary modes.

If the displayed value is not a number, the property has a value of 0.

By default, this property contains a value of 0.

Access functions:

int intValue() const
void display(const QString &s)
void display(int num)
void display(double num)

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

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

pub unsafe fn mode(&self) -> Mode[src]

This property holds the current display mode (number base)

Calls C++ function: QLCDNumber::Mode QLCDNumber::mode() const.

C++ documentation:

This property holds the current display mode (number base)

Corresponds to the current display mode, which is one of Bin, Oct, Dec (the default) and Hex. Dec mode can display floating point values, the other modes display the integer equivalent.

Access functions:

Mode mode() const
void setMode(Mode)

See also smallDecimalPoint(), setHexMode(), setDecMode(), setOctMode(), and setBinMode().

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

Constructs an LCD number, sets the number of digits to 5, the base to decimal, the decimal point mode to 'small' and the frame style to a raised box. The segmentStyle() is set to Outline.

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

C++ documentation:

Constructs an LCD number, sets the number of digits to 5, the base to decimal, the decimal point mode to 'small' and the frame style to a raised box. The segmentStyle() is set to Outline.

The parent argument is passed to the QFrame constructor.

See also setDigitCount() and setSmallDecimalPoint().

pub unsafe fn from_uint_q_widget(
    num_digits: c_uint,
    parent: impl CastInto<Ptr<QWidget>>
) -> QBox<QLCDNumber>
[src]

Constructs an LCD number, sets the number of digits to numDigits, the base to decimal, the decimal point mode to 'small' and the frame style to a raised box. The segmentStyle() is set to Filled.

Calls C++ function: [constructor] void QLCDNumber::QLCDNumber(unsigned int numDigits, QWidget* parent = …).

C++ documentation:

Constructs an LCD number, sets the number of digits to numDigits, the base to decimal, the decimal point mode to 'small' and the frame style to a raised box. The segmentStyle() is set to Filled.

The parent argument is passed to the QFrame constructor.

See also setDigitCount() and setSmallDecimalPoint().

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

The QLCDNumber widget displays a number with LCD-like digits.

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

C++ documentation:

The QLCDNumber widget displays a number with LCD-like digits.

It can display a number in just about any size. It can display decimal, hexadecimal, octal or binary numbers. It is easy to connect to data sources using the display() slot, which is overloaded to take any of five argument types.

There are also slots to change the base with setMode() and the decimal point with setSmallDecimalPoint().

QLCDNumber emits the overflow() signal when it is asked to display something beyond its range. The range is set by setDigitCount(), but setSmallDecimalPoint() also influences it. If the display is set to hexadecimal, octal or binary, the integer equivalent of the value is displayed.

These digits and other symbols can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, colon, degree sign (which is specified as single quote in the string) and space. QLCDNumber substitutes spaces for illegal characters.

It is not possible to retrieve the contents of a QLCDNumber object, although you can retrieve the numeric value with value(). If you really need the text, we recommend that you connect the signals that feed the display() slot to another slot as well and store the value there.

Incidentally, QLCDNumber is the very oldest part of Qt, tracing its roots back to a BASIC program on the Sinclair Spectrum.

pub unsafe fn from_uint(num_digits: c_uint) -> QBox<QLCDNumber>[src]

Constructs an LCD number, sets the number of digits to numDigits, the base to decimal, the decimal point mode to 'small' and the frame style to a raised box. The segmentStyle() is set to Filled.

Calls C++ function: [constructor] void QLCDNumber::QLCDNumber(unsigned int numDigits).

C++ documentation:

Constructs an LCD number, sets the number of digits to numDigits, the base to decimal, the decimal point mode to 'small' and the frame style to a raised box. The segmentStyle() is set to Filled.

The parent argument is passed to the QFrame constructor.

See also setDigitCount() and setSmallDecimalPoint().

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

Calls C++ function: virtual int QLCDNumber::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* QLCDNumber::qt_metacast(const char* arg1).

pub unsafe fn segment_style(&self) -> SegmentStyle[src]

This property holds the style of the LCDNumber

Calls C++ function: QLCDNumber::SegmentStyle QLCDNumber::segmentStyle() const.

C++ documentation:

This property holds the style of the LCDNumber

StyleResult
OutlineProduces raised segments filled with the background color
Filled (this is the default).Produces raised segments filled with the foreground color.
FlatProduces flat segments filled with the foreground color.

Outline and Filled will additionally use QPalette::light() and QPalette::dark() for shadow effects.

Access functions:

SegmentStyle segmentStyle() const
void setSegmentStyle(SegmentStyle)

pub unsafe fn set_bin_mode(&self)[src]

Calls setMode(Bin). Provided for convenience (e.g. for connecting buttons to it).

Calls C++ function: [slot] void QLCDNumber::setBinMode().

C++ documentation:

Calls setMode(Bin). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setHexMode(), setDecMode(), setOctMode(), and mode().

pub unsafe fn set_dec_mode(&self)[src]

Calls setMode(Dec). Provided for convenience (e.g. for connecting buttons to it).

Calls C++ function: [slot] void QLCDNumber::setDecMode().

C++ documentation:

Calls setMode(Dec). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setHexMode(), setOctMode(), setBinMode(), and mode().

pub unsafe fn set_digit_count(&self, n_digits: c_int)[src]

Sets the current number of digits to numDigits. Must be in the range 0..99.

Calls C++ function: void QLCDNumber::setDigitCount(int nDigits).

C++ documentation:

Sets the current number of digits to numDigits. Must be in the range 0..99.

Note: Setter function for property digitCount.

See also digitCount().

pub unsafe fn set_hex_mode(&self)[src]

Calls setMode(Hex). Provided for convenience (e.g. for connecting buttons to it).

Calls C++ function: [slot] void QLCDNumber::setHexMode().

C++ documentation:

Calls setMode(Hex). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setDecMode(), setOctMode(), setBinMode(), and mode().

pub unsafe fn set_mode(&self, arg1: Mode)[src]

This property holds the current display mode (number base)

Calls C++ function: void QLCDNumber::setMode(QLCDNumber::Mode arg1).

C++ documentation:

This property holds the current display mode (number base)

Corresponds to the current display mode, which is one of Bin, Oct, Dec (the default) and Hex. Dec mode can display floating point values, the other modes display the integer equivalent.

Access functions:

Mode mode() const
void setMode(Mode)

See also smallDecimalPoint(), setHexMode(), setDecMode(), setOctMode(), and setBinMode().

pub unsafe fn set_oct_mode(&self)[src]

Calls setMode(Oct). Provided for convenience (e.g. for connecting buttons to it).

Calls C++ function: [slot] void QLCDNumber::setOctMode().

C++ documentation:

Calls setMode(Oct). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setHexMode(), setDecMode(), setBinMode(), and mode().

pub unsafe fn set_segment_style(&self, arg1: SegmentStyle)[src]

This property holds the style of the LCDNumber

Calls C++ function: void QLCDNumber::setSegmentStyle(QLCDNumber::SegmentStyle arg1).

C++ documentation:

This property holds the style of the LCDNumber

StyleResult
OutlineProduces raised segments filled with the background color
Filled (this is the default).Produces raised segments filled with the foreground color.
FlatProduces flat segments filled with the foreground color.

Outline and Filled will additionally use QPalette::light() and QPalette::dark() for shadow effects.

Access functions:

SegmentStyle segmentStyle() const
void setSegmentStyle(SegmentStyle)

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

This property holds the style of the decimal point

Calls C++ function: [slot] void QLCDNumber::setSmallDecimalPoint(bool arg1).

C++ documentation:

This property holds the style of the decimal point

If true the decimal point is drawn between two digit positions. Otherwise it occupies a digit position of its own, i.e. is drawn in a digit position. The default is false.

The inter-digit space is made slightly wider when the decimal point is drawn between the digits.

Access functions:

bool smallDecimalPoint() const
void setSmallDecimalPoint(bool)

See also mode.

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

Reimplemented from QWidget::sizeHint().

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

C++ documentation:

Reimplemented from QWidget::sizeHint().

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

This property holds the style of the decimal point

Calls C++ function: bool QLCDNumber::smallDecimalPoint() const.

C++ documentation:

This property holds the style of the decimal point

If true the decimal point is drawn between two digit positions. Otherwise it occupies a digit position of its own, i.e. is drawn in a digit position. The default is false.

The inter-digit space is made slightly wider when the decimal point is drawn between the digits.

Access functions:

bool smallDecimalPoint() const
void setSmallDecimalPoint(bool)

See also mode.

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

Returns a reference to the staticMetaObject field.

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

Calls C++ function: static QString QLCDNumber::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 QLCDNumber::trUtf8(const char* s, const char* c, int n).

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

This property holds the displayed value

Calls C++ function: double QLCDNumber::value() const.

C++ documentation:

This property holds the displayed value

This property corresponds to the current value displayed by the LCDNumber.

If the displayed value is not a number, the property has a value of 0.

By default, this property contains a value of 0.

Access functions:

double value() const
void display(const QString &s)
void display(int num)
void display(double num)

Methods from Deref<Target = QFrame>

pub unsafe fn frame_rect(&self) -> CppBox<QRect>[src]

This property holds the frame's rectangle

Calls C++ function: QRect QFrame::frameRect() const.

C++ documentation:

This property holds the frame's rectangle

The frame's rectangle is the rectangle the frame is drawn in. By default, this is the entire widget. Setting the rectangle does does not cause a widget update. The frame rectangle is automatically adjusted when the widget changes size.

If you set the rectangle to a null rectangle (for example, QRect(0, 0, 0, 0)), then the resulting frame rectangle is equivalent to the widget rectangle.

Access functions:

QRect frameRect() const
void setFrameRect(const QRect &)

pub unsafe fn frame_shadow(&self) -> Shadow[src]

This property holds the frame shadow value from the frame style

Calls C++ function: QFrame::Shadow QFrame::frameShadow() const.

C++ documentation:

This property holds the frame shadow value from the frame style

Access functions:

Shadow frameShadow() const
void setFrameShadow(Shadow)

See also frameStyle() and frameShape().

pub unsafe fn frame_shape(&self) -> Shape[src]

This property holds the frame shape value from the frame style

Calls C++ function: QFrame::Shape QFrame::frameShape() const.

C++ documentation:

This property holds the frame shape value from the frame style

Access functions:

Shape frameShape() const
void setFrameShape(Shape)

See also frameStyle() and frameShadow().

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

Returns the frame style.

Calls C++ function: int QFrame::frameStyle() const.

C++ documentation:

Returns the frame style.

The default value is QFrame::Plain.

See also setFrameStyle(), frameShape(), and frameShadow().

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

This property holds the width of the frame that is drawn.

Calls C++ function: int QFrame::frameWidth() const.

C++ documentation:

This property holds the width of the frame that is drawn.

Note that the frame width depends on the frame style, not only the line width and the mid-line width. For example, the style specified by NoFrame always has a frame width of 0, whereas the style Panel has a frame width equivalent to the line width.

Access functions:

int frameWidth() const

See also lineWidth(), midLineWidth(), and frameStyle().

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

This property holds the line width

Calls C++ function: int QFrame::lineWidth() const.

C++ documentation:

This property holds the line width

Note that the total line width for frames used as separators (HLine and VLine) is specified by frameWidth.

The default value is 1.

Access functions:

int lineWidth() const
void setLineWidth(int)

See also midLineWidth and frameWidth.

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

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

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

This property holds the width of the mid-line

Calls C++ function: int QFrame::midLineWidth() const.

C++ documentation:

This property holds the width of the mid-line

The default value is 0.

Access functions:

int midLineWidth() const
void setMidLineWidth(int)

See also lineWidth and frameWidth.

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

Calls C++ function: virtual int QFrame::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* QFrame::qt_metacast(const char* arg1).

pub unsafe fn set_frame_rect(&self, arg1: impl CastInto<Ref<QRect>>)[src]

This property holds the frame's rectangle

Calls C++ function: void QFrame::setFrameRect(const QRect& arg1).

C++ documentation:

This property holds the frame's rectangle

The frame's rectangle is the rectangle the frame is drawn in. By default, this is the entire widget. Setting the rectangle does does not cause a widget update. The frame rectangle is automatically adjusted when the widget changes size.

If you set the rectangle to a null rectangle (for example, QRect(0, 0, 0, 0)), then the resulting frame rectangle is equivalent to the widget rectangle.

Access functions:

QRect frameRect() const
void setFrameRect(const QRect &)

pub unsafe fn set_frame_shadow(&self, arg1: Shadow)[src]

This property holds the frame shadow value from the frame style

Calls C++ function: void QFrame::setFrameShadow(QFrame::Shadow arg1).

C++ documentation:

This property holds the frame shadow value from the frame style

Access functions:

Shadow frameShadow() const
void setFrameShadow(Shadow)

See also frameStyle() and frameShape().

pub unsafe fn set_frame_shape(&self, arg1: Shape)[src]

This property holds the frame shape value from the frame style

Calls C++ function: void QFrame::setFrameShape(QFrame::Shape arg1).

C++ documentation:

This property holds the frame shape value from the frame style

Access functions:

Shape frameShape() const
void setFrameShape(Shape)

See also frameStyle() and frameShadow().

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

Sets the frame style to style.

Calls C++ function: void QFrame::setFrameStyle(int arg1).

C++ documentation:

Sets the frame style to style.

The style is the bitwise OR between a frame shape and a frame shadow style. See the picture of the frames in the main class documentation.

The frame shapes are given in QFrame::Shape and the shadow styles in QFrame::Shadow.

If a mid-line width greater than 0 is specified, an additional line is drawn for Raised or Sunken Box, HLine, and VLine frames. The mid-color of the current color group is used for drawing middle lines.

See also frameStyle().

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

This property holds the line width

Calls C++ function: void QFrame::setLineWidth(int arg1).

C++ documentation:

This property holds the line width

Note that the total line width for frames used as separators (HLine and VLine) is specified by frameWidth.

The default value is 1.

Access functions:

int lineWidth() const
void setLineWidth(int)

See also midLineWidth and frameWidth.

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

This property holds the width of the mid-line

Calls C++ function: void QFrame::setMidLineWidth(int arg1).

C++ documentation:

This property holds the width of the mid-line

The default value is 0.

Access functions:

int midLineWidth() const
void setMidLineWidth(int)

See also lineWidth and frameWidth.

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

Reimplemented from QWidget::sizeHint().

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

C++ documentation:

Reimplemented from QWidget::sizeHint().

Trait Implementations

impl CppDeletable for QLCDNumber[src]

unsafe fn delete(&self)[src]

Destroys the LCD number.

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

C++ documentation:

Destroys the LCD number.

impl Deref for QLCDNumber[src]

type Target = QFrame

The resulting type after dereferencing.

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

Calls C++ function: QFrame* static_cast<QFrame*>(QLCDNumber* ptr).

impl DynamicCast<QLCDNumber> for QFrame[src]

unsafe fn dynamic_cast(ptr: Ptr<QFrame>) -> Ptr<QLCDNumber>[src]

Calls C++ function: QLCDNumber* dynamic_cast<QLCDNumber*>(QFrame* ptr).

impl DynamicCast<QLCDNumber> for QWidget[src]

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

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

impl DynamicCast<QLCDNumber> for QObject[src]

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

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

impl DynamicCast<QLCDNumber> for QPaintDevice[src]

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

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

impl StaticDowncast<QLCDNumber> for QFrame[src]

unsafe fn static_downcast(ptr: Ptr<QFrame>) -> Ptr<QLCDNumber>[src]

Calls C++ function: QLCDNumber* static_cast<QLCDNumber*>(QFrame* ptr).

impl StaticDowncast<QLCDNumber> for QWidget[src]

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

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

impl StaticDowncast<QLCDNumber> for QObject[src]

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

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

impl StaticDowncast<QLCDNumber> for QPaintDevice[src]

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

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

impl StaticUpcast<QFrame> for QLCDNumber[src]

unsafe fn static_upcast(ptr: Ptr<QLCDNumber>) -> Ptr<QFrame>[src]

Calls C++ function: QFrame* static_cast<QFrame*>(QLCDNumber* ptr).

impl StaticUpcast<QObject> for QLCDNumber[src]

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

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

impl StaticUpcast<QPaintDevice> for QLCDNumber[src]

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

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

impl StaticUpcast<QWidget> for QLCDNumber[src]

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

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

Auto Trait Implementations

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.