[][src]Struct qt_widgets::QHeaderView

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

The QHeaderView class provides a header row or header column for item views.

C++ class: QHeaderView.

C++ documentation:

The QHeaderView class provides a header row or header column for item views.

A QHeaderView displays the headers used in item views such as the QTableView and QTreeView classes. It takes the place of Qt3's QHeader class previously used for the same purpose, but uses the Qt's model/view architecture for consistency with the item view classes.

The QHeaderView class is one of the Model/View Classes and is part of Qt's model/view framework.

The header gets the data for each section from the model using the QAbstractItemModel::headerData() function. You can set the data by using QAbstractItemModel::setHeaderData().

Each header has an orientation() and a number of sections, given by the count() function. A section refers to a part of the header - either a row or a column, depending on the orientation.

Sections can be moved and resized using moveSection() and resizeSection(); they can also be hidden and shown with hideSection() and showSection().

Each section of a header is described by a section ID, specified by its section(), and can be located at a particular visualIndex() in the header. A section can have a sort indicator set with setSortIndicator(); this indicates whether the items in the associated item view will be sorted in the order given by the section.

For a horizontal header the section is equivalent to a column in the model, and for a vertical header the section is equivalent to a row in the model.

Methods

impl QHeaderView[src]

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

Sets the header's offset to offset.

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

C++ documentation:

Sets the header's offset to offset.

See also offset() and length().

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

Sets the offset to the start of the section at the given visualSectionNumber. visualSectionNumber is the actual visible section when hiddenSections are not considered. That is not always the same as visualIndex().

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

C++ documentation:

Sets the offset to the start of the section at the given visualSectionNumber. visualSectionNumber is the actual visible section when hiddenSections are not considered. That is not always the same as visualIndex().

This function was introduced in Qt 4.2.

See also setOffset() and sectionPosition().

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

Sets the offset to make the last section visible.

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

C++ documentation:

Sets the offset to make the last section visible.

This function was introduced in Qt 4.2.

See also setOffset(), sectionPosition(), and setOffsetToSectionPosition().

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

Updates the changed header sections with the given orientation, from logicalFirst to logicalLast inclusive.

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

C++ documentation:

Updates the changed header sections with the given orientation, from logicalFirst to logicalLast inclusive.

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

This signal is emitted when a section is moved. The section's logical index is specified by logicalIndex, the old index by oldVisualIndex, and the new index position by newVisualIndex.

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

C++ documentation:

This signal is emitted when a section is moved. The section's logical index is specified by logicalIndex, the old index by oldVisualIndex, and the new index position by newVisualIndex.

See also moveSection().

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

This signal is emitted when a section is resized. The section's logical number is specified by logicalIndex, the old size by oldSize, and the new size by newSize.

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

C++ documentation:

This signal is emitted when a section is resized. The section's logical number is specified by logicalIndex, the old size by oldSize, and the new size by newSize.

See also resizeSection().

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

This signal is emitted when a section is pressed. The section's logical index is specified by logicalIndex.

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

C++ documentation:

This signal is emitted when a section is pressed. The section's logical index is specified by logicalIndex.

See also setSectionsClickable().

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

This signal is emitted when a section is clicked. The section's logical index is specified by logicalIndex.

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

C++ documentation:

This signal is emitted when a section is clicked. The section's logical index is specified by logicalIndex.

Note that the sectionPressed signal will also be emitted.

See also setSectionsClickable() and sectionPressed().

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

This signal is emitted when the cursor moves over the section and the left mouse button is pressed. The section's logical index is specified by logicalIndex.

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

C++ documentation:

This signal is emitted when the cursor moves over the section and the left mouse button is pressed. The section's logical index is specified by logicalIndex.

This function was introduced in Qt 4.3.

See also setSectionsClickable() and sectionPressed().

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

This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.

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

C++ documentation:

This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.

See also setSectionsClickable().

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

This signal is emitted when the number of sections changes, i.e., when sections are added or deleted. The original count is specified by oldCount, and the new count by newCount.

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

C++ documentation:

This signal is emitted when the number of sections changes, i.e., when sections are added or deleted. The original count is specified by oldCount, and the new count by newCount.

See also count(), length(), and headerDataChanged().

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

This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.

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

C++ documentation:

This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.

See also setSectionsClickable().

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

This signal is emitted when the header's geometries have changed.

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

C++ documentation:

This signal is emitted when the header's geometries have changed.

This function was introduced in Qt 4.2.

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

This signal is emitted when the section containing the sort indicator or the order indicated is changed. The section's logical index is specified by logicalIndex and the sort order is specified by order.

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

C++ documentation:

This signal is emitted when the section containing the sort indicator or the order indicated is changed. The section's logical index is specified by logicalIndex and the sort order is specified by order.

This function was introduced in Qt 4.3.

See also setSortIndicator().

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

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

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

Resizes the sections according to their size hints. Normally, you do not have to call this function.

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

C++ documentation:

Resizes the sections according to their size hints. Normally, you do not have to call this function.

pub fn slot_sections_inserted(
    &self
) -> Receiver<(*const QModelIndex, c_int, c_int)>
[src]

This slot is called when sections are inserted into the parent. logicalFirst and logicalLast indices signify where the new sections were inserted.

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

C++ documentation:

This slot is called when sections are inserted into the parent. logicalFirst and logicalLast indices signify where the new sections were inserted.

If only one section is inserted, logicalFirst and logicalLast will be the same.

pub fn slot_sections_about_to_be_removed(
    &self
) -> Receiver<(*const QModelIndex, c_int, c_int)>
[src]

This slot is called when sections are removed from the parent. logicalFirst and logicalLast signify where the sections were removed.

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

C++ documentation:

This slot is called when sections are removed from the parent. logicalFirst and logicalLast signify where the sections were removed.

If only one section is removed, logicalFirst and logicalLast will be the same.

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

This property holds whether interactive resizing will be cascaded to the following sections once the section being resized by the user has reached its minimum size

Calls C++ function: bool QHeaderView::cascadingSectionResizes() const.

C++ documentation:

This property holds whether interactive resizing will be cascaded to the following sections once the section being resized by the user has reached its minimum size

This property only affects sections that have Interactive as their resize mode.

The default value is false.

This property was introduced in Qt 4.2.

Access functions:

bool cascadingSectionResizes() const
void setCascadingSectionResizes(bool enable)

See also setSectionResizeMode().

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

Returns the number of sections in the header.

Calls C++ function: int QHeaderView::count() const.

C++ documentation:

Returns the number of sections in the header.

See also sectionCountChanged() and length().

pub unsafe fn default_alignment(&self) -> QFlags<AlignmentFlag>[src]

This property holds the default alignment of the text in each header section

Calls C++ function: QFlags<Qt::AlignmentFlag> QHeaderView::defaultAlignment() const.

C++ documentation:

This property holds the default alignment of the text in each header section

This property was introduced in Qt 4.1.

Access functions:

Qt::Alignment defaultAlignment() const
void setDefaultAlignment(Qt::Alignment alignment)

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

This property holds the default size of the header sections before resizing.

Calls C++ function: int QHeaderView::defaultSectionSize() const.

C++ documentation:

This property holds the default size of the header sections before resizing.

This property only affects sections that have Interactive or Fixed as their resize mode.

By default, the value of this property is style dependent. Thus, when the style changes, this property updates from it. Calling setDefaultSectionSize() stops the updates, calling resetDefaultSectionSize() will restore default behavior.

Access functions:

int defaultSectionSize() const
void setDefaultSectionSize(int size)
void resetDefaultSectionSize()

See also setSectionResizeMode() and minimumSectionSize.

pub unsafe fn do_items_layout(&self)[src]

Calls C++ function: virtual void QHeaderView::doItemsLayout().

pub unsafe fn header_data_changed(
    &self,
    orientation: Orientation,
    logical_first: c_int,
    logical_last: c_int
)
[src]

Updates the changed header sections with the given orientation, from logicalFirst to logicalLast inclusive.

Calls C++ function: [slot] void QHeaderView::headerDataChanged(Qt::Orientation orientation, int logicalFirst, int logicalLast).

C++ documentation:

Updates the changed header sections with the given orientation, from logicalFirst to logicalLast inclusive.

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

Returns the number of sections in the header that has been hidden.

Calls C++ function: int QHeaderView::hiddenSectionCount() const.

C++ documentation:

Returns the number of sections in the header that has been hidden.

This function was introduced in Qt 4.1.

See also setSectionHidden() and isSectionHidden().

pub unsafe fn hide_section(&self, logical_index: c_int)[src]

Hides the section specified by logicalIndex.

Calls C++ function: void QHeaderView::hideSection(int logicalIndex).

C++ documentation:

Hides the section specified by logicalIndex.

See also showSection(), isSectionHidden(), hiddenSectionCount(), and setSectionHidden().

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

This property holds whether the sections containing selected items are highlighted

Calls C++ function: bool QHeaderView::highlightSections() const.

C++ documentation:

This property holds whether the sections containing selected items are highlighted

By default, this property is false.

Access functions:

bool highlightSections() const
void setHighlightSections(bool highlight)

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

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

This property holds whether the first column can be moved by the user

Calls C++ function: bool QHeaderView::isFirstSectionMovable() const.

C++ documentation:

This property holds whether the first column can be moved by the user

This property controls whether the first column can be moved by the user. In a QTreeView, the first column holds the tree structure and is therefore non-movable by default, even after setSectionsMovable(true).

It can be made movable again, for instance in the case of flat lists without a tree structure, by calling this method. In such a scenario, it is recommended to call QTreeView::setRootIsDecorated(false) as well.

Setting it to true has no effect unless setSectionsMovable(true) is called as well.

This property was introduced in Qt 5.11.

Access functions:

bool isFirstSectionMovable() const
void setFirstSectionMovable(bool movable)

See also setSectionsMovable().

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

Returns true if the section specified by logicalIndex is explicitly hidden from the user; otherwise returns false.

Calls C++ function: bool QHeaderView::isSectionHidden(int logicalIndex) const.

C++ documentation:

Returns true if the section specified by logicalIndex is explicitly hidden from the user; otherwise returns false.

See also hideSection(), showSection(), setSectionHidden(), and hiddenSectionCount().

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

This property holds whether the sort indicator is shown

Calls C++ function: bool QHeaderView::isSortIndicatorShown() const.

C++ documentation:

This property holds whether the sort indicator is shown

By default, this property is false.

Access functions:

bool isSortIndicatorShown() const
void setSortIndicatorShown(bool show)

See also setSectionsClickable().

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

Returns the length along the orientation of the header.

Calls C++ function: int QHeaderView::length() const.

C++ documentation:

Returns the length along the orientation of the header.

See also sizeHint(), setSectionResizeMode(), and offset().

pub unsafe fn logical_index(&self, visual_index: c_int) -> c_int[src]

Returns the logicalIndex for the section at the given visualIndex position, or -1 if visualIndex < 0 or visualIndex >= QHeaderView::count().

Calls C++ function: int QHeaderView::logicalIndex(int visualIndex) const.

C++ documentation:

Returns the logicalIndex for the section at the given visualIndex position, or -1 if visualIndex < 0 or visualIndex >= QHeaderView::count().

Note that the visualIndex is not affected by hidden sections.

See also visualIndex() and sectionPosition().

pub unsafe fn logical_index_at_int(&self, position: c_int) -> c_int[src]

Returns the section that covers the given position in the viewport.

Calls C++ function: int QHeaderView::logicalIndexAt(int position) const.

C++ documentation:

Returns the section that covers the given position in the viewport.

See also visualIndexAt() and isSectionHidden().

pub unsafe fn logical_index_at_2_int(&self, x: c_int, y: c_int) -> c_int[src]

Returns the logical index of the section at the given coordinate. If the header is horizontal x will be used, otherwise y will be used to find the logical index.

Calls C++ function: int QHeaderView::logicalIndexAt(int x, int y) const.

C++ documentation:

Returns the logical index of the section at the given coordinate. If the header is horizontal x will be used, otherwise y will be used to find the logical index.

pub unsafe fn logical_index_at_q_point(
    &self,
    pos: impl CastInto<Ref<QPoint>>
) -> c_int
[src]

Returns the logical index of the section at the position given in pos. If the header is horizontal the x-coordinate will be used, otherwise the y-coordinate will be used to find the logical index.

Calls C++ function: int QHeaderView::logicalIndexAt(const QPoint& pos) const.

C++ documentation:

Returns the logical index of the section at the position given in pos. If the header is horizontal the x-coordinate will be used, otherwise the y-coordinate will be used to find the logical index.

See also sectionPosition().

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

This property holds the maximum size of the header sections.

Calls C++ function: int QHeaderView::maximumSectionSize() const.

C++ documentation:

This property holds the maximum size of the header sections.

The maximum section size is the largest section size allowed. The default value for this property is 1048575, which is also the largest possible size for a section. Setting maximum to -1 will reset the value to the largest section size.

With exception of stretch this property is honored by all resize modes

This property was introduced in Qt 5.2.

Access functions:

int maximumSectionSize() const
void setMaximumSectionSize(int size)

See also setSectionResizeMode() and defaultSectionSize.

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

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

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

This property holds the minimum size of the header sections.

Calls C++ function: int QHeaderView::minimumSectionSize() const.

C++ documentation:

This property holds the minimum size of the header sections.

The minimum section size is the smallest section size allowed. If the minimum section size is set to -1, QHeaderView will use the maximum of the global strut or the font metrics size.

This property is honored by all resize modes.

This property was introduced in Qt 4.2.

Access functions:

int minimumSectionSize() const
void setMinimumSectionSize(int size)

See also setSectionResizeMode() and defaultSectionSize.

pub unsafe fn move_section(&self, from: c_int, to: c_int)[src]

Moves the section at visual index from to occupy visual index to.

Calls C++ function: void QHeaderView::moveSection(int from, int to).

C++ documentation:

Moves the section at visual index from to occupy visual index to.

See also sectionsMoved().

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

Creates a new generic header with the given orientation and parent.

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

C++ documentation:

Creates a new generic header with the given orientation and parent.

pub unsafe fn new_1a(orientation: Orientation) -> QBox<QHeaderView>[src]

Creates a new generic header with the given orientation and parent.

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

C++ documentation:

Creates a new generic header with the given orientation and parent.

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

Returns the offset of the header: this is the header's left-most (or top-most for vertical headers) visible pixel.

Calls C++ function: int QHeaderView::offset() const.

C++ documentation:

Returns the offset of the header: this is the header's left-most (or top-most for vertical headers) visible pixel.

See also setOffset().

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

Returns the orientation of the header.

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

C++ documentation:

Returns the orientation of the header.

See also Qt::Orientation.

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

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

pub unsafe fn reset(&self)[src]

Reimplemented from QAbstractItemView::reset().

Calls C++ function: virtual void QHeaderView::reset().

C++ documentation:

Reimplemented from QAbstractItemView::reset().

pub unsafe fn reset_default_section_size(&self)[src]

This property holds the default size of the header sections before resizing.

Calls C++ function: void QHeaderView::resetDefaultSectionSize().

C++ documentation:

This property holds the default size of the header sections before resizing.

This property only affects sections that have Interactive or Fixed as their resize mode.

By default, the value of this property is style dependent. Thus, when the style changes, this property updates from it. Calling setDefaultSectionSize() stops the updates, calling resetDefaultSectionSize() will restore default behavior.

Access functions:

int defaultSectionSize() const
void setDefaultSectionSize(int size)
void resetDefaultSectionSize()

See also setSectionResizeMode() and minimumSectionSize.

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

Returns how precise QHeaderView will calculate on ResizeToContents.

Calls C++ function: int QHeaderView::resizeContentsPrecision() const.

C++ documentation:

Returns how precise QHeaderView will calculate on ResizeToContents.

This function was introduced in Qt 5.2.

See also setResizeContentsPrecision() and setSectionResizeMode().

pub unsafe fn resize_section(&self, logical_index: c_int, size: c_int)[src]

Resizes the section specified by logicalIndex to size measured in pixels. The size parameter must be a value larger or equal to zero. A size equal to zero is however not recommended. In that situation hideSection should be used instead.

Calls C++ function: void QHeaderView::resizeSection(int logicalIndex, int size).

C++ documentation:

Resizes the section specified by logicalIndex to size measured in pixels. The size parameter must be a value larger or equal to zero. A size equal to zero is however not recommended. In that situation hideSection should be used instead.

See also sectionResized(), resizeMode(), sectionSize(), and hideSection().

pub unsafe fn resize_sections(&self, mode: ResizeMode)[src]

Resizes the sections according to the given mode, ignoring the current resize mode.

Calls C++ function: void QHeaderView::resizeSections(QHeaderView::ResizeMode mode).

C++ documentation:

Resizes the sections according to the given mode, ignoring the current resize mode.

See also resizeMode() and sectionResized().

pub unsafe fn restore_state(
    &self,
    state: impl CastInto<Ref<QByteArray>>
) -> bool
[src]

Restores the state of this header view. This function returns true if the state was restored; otherwise returns false.

Calls C++ function: bool QHeaderView::restoreState(const QByteArray& state).

C++ documentation:

Restores the state of this header view. This function returns true if the state was restored; otherwise returns false.

This function was introduced in Qt 4.3.

See also saveState().

pub unsafe fn save_state(&self) -> CppBox<QByteArray>[src]

Saves the current state of this header view.

Calls C++ function: QByteArray QHeaderView::saveState() const.

C++ documentation:

Saves the current state of this header view.

To restore the saved state, pass the return value to restoreState().

This function was introduced in Qt 4.3.

See also restoreState().

pub unsafe fn section_position(&self, logical_index: c_int) -> c_int[src]

Returns the section position of the given logicalIndex, or -1 if the section is hidden. The position is measured in pixels from the first visible item's top-left corner to the top-left corner of the item with logicalIndex. The measurement is along the x-axis for horizontal headers and along the y-axis for vertical headers.

Calls C++ function: int QHeaderView::sectionPosition(int logicalIndex) const.

C++ documentation:

Returns the section position of the given logicalIndex, or -1 if the section is hidden. The position is measured in pixels from the first visible item's top-left corner to the top-left corner of the item with logicalIndex. The measurement is along the x-axis for horizontal headers and along the y-axis for vertical headers.

See also sectionViewportPosition().

pub unsafe fn section_resize_mode(&self, logical_index: c_int) -> ResizeMode[src]

Returns the resize mode that applies to the section specified by the given logicalIndex.

Calls C++ function: QHeaderView::ResizeMode QHeaderView::sectionResizeMode(int logicalIndex) const.

C++ documentation:

Returns the resize mode that applies to the section specified by the given logicalIndex.

This function was introduced in Qt 5.0.

See also setSectionResizeMode().

pub unsafe fn section_size(&self, logical_index: c_int) -> c_int[src]

Returns the width (or height for vertical headers) of the given logicalIndex.

Calls C++ function: int QHeaderView::sectionSize(int logicalIndex) const.

C++ documentation:

Returns the width (or height for vertical headers) of the given logicalIndex.

See also length(), setSectionResizeMode(), and defaultSectionSize().

pub unsafe fn section_size_hint(&self, logical_index: c_int) -> c_int[src]

Returns a suitable size hint for the section specified by logicalIndex.

Calls C++ function: int QHeaderView::sectionSizeHint(int logicalIndex) const.

C++ documentation:

Returns a suitable size hint for the section specified by logicalIndex.

Qt::SizeHintRole

See also sizeHint(), defaultSectionSize(), minimumSectionSize(), and maximumSectionSize().

pub unsafe fn section_viewport_position(&self, logical_index: c_int) -> c_int[src]

Returns the section viewport position of the given logicalIndex.

Calls C++ function: int QHeaderView::sectionViewportPosition(int logicalIndex) const.

C++ documentation:

Returns the section viewport position of the given logicalIndex.

If the section is hidden, the return value is undefined.

See also sectionPosition() and isSectionHidden().

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

Returns true if the header is clickable; otherwise returns false. A clickable header could be set up to allow the user to change the representation of the data in the view related to the header.

Calls C++ function: bool QHeaderView::sectionsClickable() const.

C++ documentation:

Returns true if the header is clickable; otherwise returns false. A clickable header could be set up to allow the user to change the representation of the data in the view related to the header.

This function was introduced in Qt 5.0.

See also setSectionsClickable().

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

Returns true if sections in the header has been hidden; otherwise returns false;

Calls C++ function: bool QHeaderView::sectionsHidden() const.

C++ documentation:

Returns true if sections in the header has been hidden; otherwise returns false;

This function was introduced in Qt 4.1.

See also setSectionHidden().

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

Returns true if the header can be moved by the user; otherwise returns false.

Calls C++ function: bool QHeaderView::sectionsMovable() const.

C++ documentation:

Returns true if the header can be moved by the user; otherwise returns false.

This function was introduced in Qt 5.0.

See also setSectionsMovable().

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

Returns true if sections in the header has been moved; otherwise returns false;

Calls C++ function: bool QHeaderView::sectionsMoved() const.

C++ documentation:

Returns true if sections in the header has been moved; otherwise returns false;

See also moveSection().

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

This property holds whether interactive resizing will be cascaded to the following sections once the section being resized by the user has reached its minimum size

Calls C++ function: void QHeaderView::setCascadingSectionResizes(bool enable).

C++ documentation:

This property holds whether interactive resizing will be cascaded to the following sections once the section being resized by the user has reached its minimum size

This property only affects sections that have Interactive as their resize mode.

The default value is false.

This property was introduced in Qt 4.2.

Access functions:

bool cascadingSectionResizes() const
void setCascadingSectionResizes(bool enable)

See also setSectionResizeMode().

pub unsafe fn set_default_alignment(&self, alignment: QFlags<AlignmentFlag>)[src]

This property holds the default alignment of the text in each header section

Calls C++ function: void QHeaderView::setDefaultAlignment(QFlags<Qt::AlignmentFlag> alignment).

C++ documentation:

This property holds the default alignment of the text in each header section

This property was introduced in Qt 4.1.

Access functions:

Qt::Alignment defaultAlignment() const
void setDefaultAlignment(Qt::Alignment alignment)

pub unsafe fn set_default_section_size(&self, size: c_int)[src]

This property holds the default size of the header sections before resizing.

Calls C++ function: void QHeaderView::setDefaultSectionSize(int size).

C++ documentation:

This property holds the default size of the header sections before resizing.

This property only affects sections that have Interactive or Fixed as their resize mode.

By default, the value of this property is style dependent. Thus, when the style changes, this property updates from it. Calling setDefaultSectionSize() stops the updates, calling resetDefaultSectionSize() will restore default behavior.

Access functions:

int defaultSectionSize() const
void setDefaultSectionSize(int size)
void resetDefaultSectionSize()

See also setSectionResizeMode() and minimumSectionSize.

pub unsafe fn set_first_section_movable(&self, movable: bool)[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

This property holds whether the first column can be moved by the user

Calls C++ function: void QHeaderView::setFirstSectionMovable(bool movable).

C++ documentation:

This property holds whether the first column can be moved by the user

This property controls whether the first column can be moved by the user. In a QTreeView, the first column holds the tree structure and is therefore non-movable by default, even after setSectionsMovable(true).

It can be made movable again, for instance in the case of flat lists without a tree structure, by calling this method. In such a scenario, it is recommended to call QTreeView::setRootIsDecorated(false) as well.

Setting it to true has no effect unless setSectionsMovable(true) is called as well.

This property was introduced in Qt 5.11.

Access functions:

bool isFirstSectionMovable() const
void setFirstSectionMovable(bool movable)

See also setSectionsMovable().

pub unsafe fn set_highlight_sections(&self, highlight: bool)[src]

This property holds whether the sections containing selected items are highlighted

Calls C++ function: void QHeaderView::setHighlightSections(bool highlight).

C++ documentation:

This property holds whether the sections containing selected items are highlighted

By default, this property is false.

Access functions:

bool highlightSections() const
void setHighlightSections(bool highlight)

pub unsafe fn set_maximum_section_size(&self, size: c_int)[src]

This property holds the maximum size of the header sections.

Calls C++ function: void QHeaderView::setMaximumSectionSize(int size).

C++ documentation:

This property holds the maximum size of the header sections.

The maximum section size is the largest section size allowed. The default value for this property is 1048575, which is also the largest possible size for a section. Setting maximum to -1 will reset the value to the largest section size.

With exception of stretch this property is honored by all resize modes

This property was introduced in Qt 5.2.

Access functions:

int maximumSectionSize() const
void setMaximumSectionSize(int size)

See also setSectionResizeMode() and defaultSectionSize.

pub unsafe fn set_minimum_section_size(&self, size: c_int)[src]

This property holds the minimum size of the header sections.

Calls C++ function: void QHeaderView::setMinimumSectionSize(int size).

C++ documentation:

This property holds the minimum size of the header sections.

The minimum section size is the smallest section size allowed. If the minimum section size is set to -1, QHeaderView will use the maximum of the global strut or the font metrics size.

This property is honored by all resize modes.

This property was introduced in Qt 4.2.

Access functions:

int minimumSectionSize() const
void setMinimumSectionSize(int size)

See also setSectionResizeMode() and defaultSectionSize.

pub unsafe fn set_model(&self, model: impl CastInto<Ptr<QAbstractItemModel>>)[src]

Reimplemented from QAbstractItemView::setModel().

Calls C++ function: virtual void QHeaderView::setModel(QAbstractItemModel* model).

C++ documentation:

Reimplemented from QAbstractItemView::setModel().

pub unsafe fn set_offset(&self, offset: c_int)[src]

Sets the header's offset to offset.

Calls C++ function: [slot] void QHeaderView::setOffset(int offset).

C++ documentation:

Sets the header's offset to offset.

See also offset() and length().

pub unsafe fn set_offset_to_last_section(&self)[src]

Sets the offset to make the last section visible.

Calls C++ function: [slot] void QHeaderView::setOffsetToLastSection().

C++ documentation:

Sets the offset to make the last section visible.

This function was introduced in Qt 4.2.

See also setOffset(), sectionPosition(), and setOffsetToSectionPosition().

pub unsafe fn set_offset_to_section_position(&self, visual_index: c_int)[src]

Sets the offset to the start of the section at the given visualSectionNumber. visualSectionNumber is the actual visible section when hiddenSections are not considered. That is not always the same as visualIndex().

Calls C++ function: [slot] void QHeaderView::setOffsetToSectionPosition(int visualIndex).

C++ documentation:

Sets the offset to the start of the section at the given visualSectionNumber. visualSectionNumber is the actual visible section when hiddenSections are not considered. That is not always the same as visualIndex().

This function was introduced in Qt 4.2.

See also setOffset() and sectionPosition().

pub unsafe fn set_resize_contents_precision(&self, precision: c_int)[src]

Sets how precise QHeaderView should calculate the size when ResizeToContents is used. A low value will provide a less accurate but fast auto resize while a higher value will provide a more accurate resize that however can be slow.

Calls C++ function: void QHeaderView::setResizeContentsPrecision(int precision).

C++ documentation:

Sets how precise QHeaderView should calculate the size when ResizeToContents is used. A low value will provide a less accurate but fast auto resize while a higher value will provide a more accurate resize that however can be slow.

The number precision specifies how many sections that should be consider when calculating the preferred size.

The default value is 1000 meaning that a horizontal column with auto-resize will look at maximum 1000 rows on calculating when doing an auto resize.

Special value 0 means that it will look at only the visible area. Special value -1 will imply looking at all elements.

This value is used in QTableView::sizeHintForColumn(), QTableView::sizeHintForRow() and QTreeView::sizeHintForColumn(). Reimplementing these functions can make this function not having an effect.

This function was introduced in Qt 5.2.

See also resizeContentsPrecision(), setSectionResizeMode(), resizeSections(), QTableView::sizeHintForColumn(), QTableView::sizeHintForRow(), and QTreeView::sizeHintForColumn().

pub unsafe fn set_section_hidden(&self, logical_index: c_int, hide: bool)[src]

If hide is true the section specified by logicalIndex is hidden; otherwise the section is shown.

Calls C++ function: void QHeaderView::setSectionHidden(int logicalIndex, bool hide).

C++ documentation:

If hide is true the section specified by logicalIndex is hidden; otherwise the section is shown.

See also isSectionHidden() and hiddenSectionCount().

pub unsafe fn set_section_resize_mode_1a(&self, mode: ResizeMode)[src]

Sets the constraints on how the header can be resized to those described by the given mode.

Calls C++ function: void QHeaderView::setSectionResizeMode(QHeaderView::ResizeMode mode).

C++ documentation:

Sets the constraints on how the header can be resized to those described by the given mode.

This function was introduced in Qt 5.0.

See also sectionResizeMode(), resizeMode(), length(), and sectionResized().

pub unsafe fn set_section_resize_mode_2a(
    &self,
    logical_index: c_int,
    mode: ResizeMode
)
[src]

Sets the constraints on how the section specified by logicalIndex in the header can be resized to those described by the given mode. The logical index should exist at the time this function is called.

Calls C++ function: void QHeaderView::setSectionResizeMode(int logicalIndex, QHeaderView::ResizeMode mode).

C++ documentation:

Sets the constraints on how the section specified by logicalIndex in the header can be resized to those described by the given mode. The logical index should exist at the time this function is called.

Note: This setting will be ignored for the last section if the stretchLastSection property is set to true. This is the default for the horizontal headers provided by QTreeView.

This function was introduced in Qt 5.0.

See also setStretchLastSection() and resizeContentsPrecision().

pub unsafe fn set_sections_clickable(&self, clickable: bool)[src]

If clickable is true, the header will respond to single clicks.

Calls C++ function: void QHeaderView::setSectionsClickable(bool clickable).

C++ documentation:

If clickable is true, the header will respond to single clicks.

This function was introduced in Qt 5.0.

See also sectionsClickable(), sectionClicked(), sectionPressed(), and setSortIndicatorShown().

pub unsafe fn set_sections_movable(&self, movable: bool)[src]

If movable is true, the header may be moved by the user; otherwise it is fixed in place.

Calls C++ function: void QHeaderView::setSectionsMovable(bool movable).

C++ documentation:

If movable is true, the header may be moved by the user; otherwise it is fixed in place.

This function was introduced in Qt 5.0.

See also sectionsMovable() and sectionMoved().

pub unsafe fn set_sort_indicator(&self, logical_index: c_int, order: SortOrder)[src]

Sets the sort indicator for the section specified by the given logicalIndex in the direction specified by order, and removes the sort indicator from any other section that was showing it.

Calls C++ function: void QHeaderView::setSortIndicator(int logicalIndex, Qt::SortOrder order).

C++ documentation:

Sets the sort indicator for the section specified by the given logicalIndex in the direction specified by order, and removes the sort indicator from any other section that was showing it.

logicalIndex may be -1, in which case no sort indicator will be shown and the model will return to its natural, unsorted order. Note that not all models support this and may even crash in this case.

See also sortIndicatorSection() and sortIndicatorOrder().

pub unsafe fn set_sort_indicator_shown(&self, show: bool)[src]

This property holds whether the sort indicator is shown

Calls C++ function: void QHeaderView::setSortIndicatorShown(bool show).

C++ documentation:

This property holds whether the sort indicator is shown

By default, this property is false.

Access functions:

bool isSortIndicatorShown() const
void setSortIndicatorShown(bool show)

See also setSectionsClickable().

pub unsafe fn set_stretch_last_section(&self, stretch: bool)[src]

This property holds whether the last visible section in the header takes up all the available space

Calls C++ function: void QHeaderView::setStretchLastSection(bool stretch).

C++ documentation:

This property holds whether the last visible section in the header takes up all the available space

The default value is false.

Note: The horizontal headers provided by QTreeView are configured with this property set to true, ensuring that the view does not waste any of the space assigned to it for its header. If this value is set to true, this property will override the resize mode set on the last section in the header.

Access functions:

bool stretchLastSection() const
void setStretchLastSection(bool stretch)

See also setSectionResizeMode().

pub unsafe fn set_visible(&self, v: bool)[src]

Reimplemented from QWidget::setVisible().

Calls C++ function: virtual void QHeaderView::setVisible(bool v).

C++ documentation:

Reimplemented from QWidget::setVisible().

pub unsafe fn show_section(&self, logical_index: c_int)[src]

Shows the section specified by logicalIndex.

Calls C++ function: void QHeaderView::showSection(int logicalIndex).

C++ documentation:

Shows the section specified by logicalIndex.

See also hideSection(), isSectionHidden(), hiddenSectionCount(), and setSectionHidden().

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

Reimplemented from QWidget::sizeHint().

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

C++ documentation:

Reimplemented from QWidget::sizeHint().

Returns a suitable size hint for this header.

See also sectionSizeHint().

pub unsafe fn sort_indicator_order(&self) -> SortOrder[src]

Returns the order for the sort indicator. If no section has a sort indicator the return value of this function is undefined.

Calls C++ function: Qt::SortOrder QHeaderView::sortIndicatorOrder() const.

C++ documentation:

Returns the order for the sort indicator. If no section has a sort indicator the return value of this function is undefined.

See also setSortIndicator() and sortIndicatorSection().

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

Returns the logical index of the section that has a sort indicator. By default this is section 0.

Calls C++ function: int QHeaderView::sortIndicatorSection() const.

C++ documentation:

Returns the logical index of the section that has a sort indicator. By default this is section 0.

See also setSortIndicator(), sortIndicatorOrder(), and setSortIndicatorShown().

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

Returns a reference to the staticMetaObject field.

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

This property holds whether the last visible section in the header takes up all the available space

Calls C++ function: bool QHeaderView::stretchLastSection() const.

C++ documentation:

This property holds whether the last visible section in the header takes up all the available space

The default value is false.

Note: The horizontal headers provided by QTreeView are configured with this property set to true, ensuring that the view does not waste any of the space assigned to it for its header. If this value is set to true, this property will override the resize mode set on the last section in the header.

Access functions:

bool stretchLastSection() const
void setStretchLastSection(bool stretch)

See also setSectionResizeMode().

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

Returns the number of sections that are set to resize mode stretch. In views, this can be used to see if the headerview needs to resize the sections when the view's geometry changes.

Calls C++ function: int QHeaderView::stretchSectionCount() const.

C++ documentation:

Returns the number of sections that are set to resize mode stretch. In views, this can be used to see if the headerview needs to resize the sections when the view's geometry changes.

This function was introduced in Qt 4.1.

See also stretchLastSection and resizeMode().

pub unsafe fn swap_sections(&self, first: c_int, second: c_int)[src]

Swaps the section at visual index first with the section at visual index second.

Calls C++ function: void QHeaderView::swapSections(int first, int second).

C++ documentation:

Swaps the section at visual index first with the section at visual index second.

This function was introduced in Qt 4.2.

See also moveSection().

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

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

pub unsafe fn visual_index(&self, logical_index: c_int) -> c_int[src]

Returns the visual index position of the section specified by the given logicalIndex, or -1 otherwise.

Calls C++ function: int QHeaderView::visualIndex(int logicalIndex) const.

C++ documentation:

Returns the visual index position of the section specified by the given logicalIndex, or -1 otherwise.

Hidden sections still have valid visual indexes.

See also logicalIndex().

pub unsafe fn visual_index_at(&self, position: c_int) -> c_int[src]

Returns the visual index of the section that covers the given position in the viewport.

Calls C++ function: int QHeaderView::visualIndexAt(int position) const.

C++ documentation:

Returns the visual index of the section that covers the given position in the viewport.

See also logicalIndexAt().

Methods from Deref<Target = QAbstractItemView>

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

Reset the internal state of the view.

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

C++ documentation:

Reset the internal state of the view.

Warning: This function will reset open editors, scroll bar positions, selections, etc. Existing changes will not be committed. If you would like to save your changes when resetting the view, you can reimplement this function, commit your changes, and then call the superclass' implementation.

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

Sets the root item to the item at the given index.

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

C++ documentation:

Sets the root item to the item at the given index.

See also rootIndex().

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

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

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

Selects all items in the view. This function will use the selection behavior set on the view when selecting.

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

C++ documentation:

Selects all items in the view. This function will use the selection behavior set on the view when selecting.

See also setSelection(), selectedIndexes(), and clearSelection().

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

Starts editing the item corresponding to the given index if it is editable.

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

C++ documentation:

Starts editing the item corresponding to the given index if it is editable.

Note that this function does not change the current index. Since the current index defines the next and previous items to edit, users may find that keyboard navigation does not work as expected. To provide consistent navigation behavior, call setCurrentIndex() before this function with the same model index.

See also QModelIndex::flags().

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

Deselects all selected items. The current index will not be changed.

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

C++ documentation:

Deselects all selected items. The current index will not be changed.

See also setSelection() and selectAll().

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

Sets the current item to be the item at index.

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

C++ documentation:

Sets the current item to be the item at index.

Unless the current selection mode is NoSelection, the item is also selected. Note that this function also updates the starting position for any new selections the user performs.

To set an item as the current item without selecting it, call

selectionModel()->setCurrentIndex(index, QItemSelectionModel::NoUpdate);

See also currentIndex(), currentChanged(), and selectionMode.

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

Scrolls the view to the top.

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

C++ documentation:

Scrolls the view to the top.

This function was introduced in Qt 4.1.

See also scrollTo() and scrollToBottom().

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

Scrolls the view to the bottom.

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

C++ documentation:

Scrolls the view to the bottom.

This function was introduced in Qt 4.1.

See also scrollTo() and scrollToTop().

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

Updates the area occupied by the given index.

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

C++ documentation:

Updates the area occupied by the given index.

This function was introduced in Qt 4.3.

pub fn slot_data_changed(
    &self
) -> Receiver<(*const QModelIndex, *const QModelIndex, *const QVectorOfInt)>
[src]

This slot is called when items with the given roles are changed in the model. The changed items are those from topLeft to bottomRight inclusive. If just one item is changed topLeft == bottomRight.

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

C++ documentation:

This slot is called when items with the given roles are changed in the model. The changed items are those from topLeft to bottomRight inclusive. If just one item is changed topLeft == bottomRight.

The roles which have been changed can either be an empty container (meaning everything has changed), or a non-empty container with the subset of roles which have changed.

pub fn slot_rows_inserted(&self) -> Receiver<(*const QModelIndex, c_int, c_int)>[src]

This slot is called when rows are inserted. The new rows are those under the given parent from start to end inclusive. The base class implementation calls fetchMore() on the model to check for more data.

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

C++ documentation:

This slot is called when rows are inserted. The new rows are those under the given parent from start to end inclusive. The base class implementation calls fetchMore() on the model to check for more data.

See also rowsAboutToBeRemoved().

pub fn slot_rows_about_to_be_removed(
    &self
) -> Receiver<(*const QModelIndex, c_int, c_int)>
[src]

This slot is called when rows are about to be removed. The deleted rows are those under the given parent from start to end inclusive.

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

C++ documentation:

This slot is called when rows are about to be removed. The deleted rows are those under the given parent from start to end inclusive.

See also rowsInserted().

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

This slot is called when the selection is changed. The previous selection (which may be empty), is specified by deselected, and the new selection by selected.

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

C++ documentation:

This slot is called when the selection is changed. The previous selection (which may be empty), is specified by deselected, and the new selection by selected.

See also setSelection().

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

This slot is called when a new item becomes the current item. The previous current item is specified by the previous index, and the new item by the current index.

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

C++ documentation:

This slot is called when a new item becomes the current item. The previous current item is specified by the previous index, and the new item by the current index.

If you want to know about changes to items see the dataChanged() signal.

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

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

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

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

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

Updates the geometry of the child widgets of the view.

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

C++ documentation:

Updates the geometry of the child widgets of the view.

This function was introduced in Qt 4.4.

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

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

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

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

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

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

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

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

pub fn slot_close_editor(&self) -> Receiver<(*mut QWidget, EndEditHint)>[src]

Closes the given editor, and releases it. The hint is used to specify how the view should respond to the end of the editing operation. For example, the hint may indicate that the next item in the view should be opened for editing.

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

C++ documentation:

Closes the given editor, and releases it. The hint is used to specify how the view should respond to the end of the editing operation. For example, the hint may indicate that the next item in the view should be opened for editing.

See also edit() and commitData().

pub fn slot_commit_data(&self) -> Receiver<(*mut QWidget,)>[src]

Commit the data in the editor to the model.

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

C++ documentation:

Commit the data in the editor to the model.

See also closeEditor().

pub fn slot_editor_destroyed(&self) -> Receiver<(*mut QObject,)>[src]

This function is called when the given editor has been destroyed.

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

C++ documentation:

This function is called when the given editor has been destroyed.

See also closeEditor().

pub fn pressed(&self) -> Signal<(*const QModelIndex,)>[src]

This signal is emitted when a mouse button is pressed. The item the mouse was pressed on is specified by index. The signal is only emitted when the index is valid.

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

C++ documentation:

This signal is emitted when a mouse button is pressed. The item the mouse was pressed on is specified by index. The signal is only emitted when the index is valid.

Use the QApplication::mouseButtons() function to get the state of the mouse buttons.

See also activated(), clicked(), doubleClicked(), and entered().

pub fn clicked(&self) -> Signal<(*const QModelIndex,)>[src]

This signal is emitted when a mouse button is left-clicked. The item the mouse was clicked on is specified by index. The signal is only emitted when the index is valid.

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

C++ documentation:

This signal is emitted when a mouse button is left-clicked. The item the mouse was clicked on is specified by index. The signal is only emitted when the index is valid.

See also activated(), doubleClicked(), entered(), and pressed().

pub fn double_clicked(&self) -> Signal<(*const QModelIndex,)>[src]

This signal is emitted when a mouse button is double-clicked. The item the mouse was double-clicked on is specified by index. The signal is only emitted when the index is valid.

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

C++ documentation:

This signal is emitted when a mouse button is double-clicked. The item the mouse was double-clicked on is specified by index. The signal is only emitted when the index is valid.

See also clicked() and activated().

pub fn activated(&self) -> Signal<(*const QModelIndex,)>[src]

This signal is emitted when the item specified by index is activated by the user. How to activate items depends on the platform; e.g., by single- or double-clicking the item, or by pressing the Return or Enter key when the item is current.

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

C++ documentation:

This signal is emitted when the item specified by index is activated by the user. How to activate items depends on the platform; e.g., by single- or double-clicking the item, or by pressing the Return or Enter key when the item is current.

See also clicked(), doubleClicked(), entered(), and pressed().

pub fn entered(&self) -> Signal<(*const QModelIndex,)>[src]

This signal is emitted when the mouse cursor enters the item specified by index. Mouse tracking needs to be enabled for this feature to work.

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

C++ documentation:

This signal is emitted when the mouse cursor enters the item specified by index. Mouse tracking needs to be enabled for this feature to work.

See also viewportEntered(), activated(), clicked(), doubleClicked(), and pressed().

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

This signal is emitted when the mouse cursor enters the viewport. Mouse tracking needs to be enabled for this feature to work.

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

C++ documentation:

This signal is emitted when the mouse cursor enters the viewport. Mouse tracking needs to be enabled for this feature to work.

See also entered().

pub fn icon_size_changed(&self) -> Signal<(*const QSize,)>[src]

This property holds the size of items' icons

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

C++ documentation:

This property holds the size of items' icons

Setting this property when the view is visible will cause the items to be laid out again.

Access functions:

QSize iconSize() const
void setIconSize(const QSize &size)

Notifier signal:

void iconSizeChanged(const QSize &size)

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

This property holds whether to draw the background using alternating colors

Calls C++ function: bool QAbstractItemView::alternatingRowColors() const.

C++ documentation:

This property holds whether to draw the background using alternating colors

If this property is true, the item background will be drawn using QPalette::Base and QPalette::AlternateBase; otherwise the background will be drawn using the QPalette::Base color.

By default, this property is false.

Access functions:

bool alternatingRowColors() const
void setAlternatingRowColors(bool enable)

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

This property holds the size of the area when auto scrolling is triggered

Calls C++ function: int QAbstractItemView::autoScrollMargin() const.

C++ documentation:

This property holds the size of the area when auto scrolling is triggered

This property controls the size of the area at the edge of the viewport that triggers autoscrolling. The default value is 16 pixels.

This property was introduced in Qt 4.4.

Access functions:

int autoScrollMargin() const
void setAutoScrollMargin(int margin)

pub unsafe fn clear_selection(&self)[src]

Deselects all selected items. The current index will not be changed.

Calls C++ function: [slot] void QAbstractItemView::clearSelection().

C++ documentation:

Deselects all selected items. The current index will not be changed.

See also setSelection() and selectAll().

pub unsafe fn close_persistent_editor(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
)
[src]

Closes the persistent editor for the item at the given index.

Calls C++ function: void QAbstractItemView::closePersistentEditor(const QModelIndex& index).

C++ documentation:

Closes the persistent editor for the item at the given index.

See also openPersistentEditor().

pub unsafe fn current_index(&self) -> CppBox<QModelIndex>[src]

Returns the model index of the current item.

Calls C++ function: QModelIndex QAbstractItemView::currentIndex() const.

C++ documentation:

Returns the model index of the current item.

See also setCurrentIndex().

pub unsafe fn default_drop_action(&self) -> DropAction[src]

This property holds the drop action that will be used by default in QAbstractItemView::drag()

Calls C++ function: Qt::DropAction QAbstractItemView::defaultDropAction() const.

C++ documentation:

This property holds the drop action that will be used by default in QAbstractItemView::drag()

If the property is not set, the drop action is CopyAction when the supported actions support CopyAction.

This property was introduced in Qt 4.6.

Access functions:

Qt::DropAction defaultDropAction() const
void setDefaultDropAction(Qt::DropAction dropAction)

See also showDropIndicator and dragDropOverwriteMode.

pub unsafe fn do_items_layout(&self)[src]

Calls C++ function: virtual [slot] void QAbstractItemView::doItemsLayout().

pub unsafe fn drag_drop_mode(&self) -> DragDropMode[src]

This property holds the drag and drop event the view will act upon

Calls C++ function: QAbstractItemView::DragDropMode QAbstractItemView::dragDropMode() const.

C++ documentation:

This property holds the drag and drop event the view will act upon

This property was introduced in Qt 4.2.

Access functions:

DragDropMode dragDropMode() const
void setDragDropMode(DragDropMode behavior)

See also showDropIndicator and dragDropOverwriteMode.

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

This property holds the view's drag and drop behavior

Calls C++ function: bool QAbstractItemView::dragDropOverwriteMode() const.

C++ documentation:

This property holds the view's drag and drop behavior

If its value is true, the selected data will overwrite the existing item data when dropped, while moving the data will clear the item. If its value is false, the selected data will be inserted as a new item when the data is dropped. When the data is moved, the item is removed as well.

The default value is false, as in the QListView and QTreeView subclasses. In the QTableView subclass, on the other hand, the property has been set to true.

Note: This is not intended to prevent overwriting of items. The model's implementation of flags() should do that by not returning Qt::ItemIsDropEnabled.

This property was introduced in Qt 4.2.

Access functions:

bool dragDropOverwriteMode() const
void setDragDropOverwriteMode(bool overwrite)

See also dragDropMode.

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

This property holds whether the view supports dragging of its own items

Calls C++ function: bool QAbstractItemView::dragEnabled() const.

C++ documentation:

This property holds whether the view supports dragging of its own items

Access functions:

bool dragEnabled() const
void setDragEnabled(bool enable)

See also showDropIndicator, DragDropMode, dragDropOverwriteMode, and acceptDrops.

pub unsafe fn edit(&self, index: impl CastInto<Ref<QModelIndex>>)[src]

Starts editing the item corresponding to the given index if it is editable.

Calls C++ function: [slot] void QAbstractItemView::edit(const QModelIndex& index).

C++ documentation:

Starts editing the item corresponding to the given index if it is editable.

Note that this function does not change the current index. Since the current index defines the next and previous items to edit, users may find that keyboard navigation does not work as expected. To provide consistent navigation behavior, call setCurrentIndex() before this function with the same model index.

See also QModelIndex::flags().

pub unsafe fn edit_triggers(&self) -> QFlags<EditTrigger>[src]

This property holds which actions will initiate item editing

Calls C++ function: QFlags<QAbstractItemView::EditTrigger> QAbstractItemView::editTriggers() const.

C++ documentation:

This property holds which actions will initiate item editing

This property is a selection of flags defined by EditTrigger, combined using the OR operator. The view will only initiate the editing of an item if the action performed is set in this property.

Access functions:

EditTriggers editTriggers() const
void setEditTriggers(EditTriggers triggers)

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

This property holds whether autoscrolling in drag move events is enabled

Calls C++ function: bool QAbstractItemView::hasAutoScroll() const.

C++ documentation:

This property holds whether autoscrolling in drag move events is enabled

If this property is set to true (the default), the QAbstractItemView automatically scrolls the contents of the view if the user drags within 16 pixels of the viewport edge. If the current item changes, then the view will scroll automatically to ensure that the current item is fully visible.

This property only works if the viewport accepts drops. Autoscroll is switched off by setting this property to false.

Access functions:

bool hasAutoScroll() const
void setAutoScroll(bool enable)

pub unsafe fn horizontal_scroll_mode(&self) -> ScrollMode[src]

how the view scrolls its contents in the horizontal direction

Calls C++ function: QAbstractItemView::ScrollMode QAbstractItemView::horizontalScrollMode() const.

C++ documentation:

how the view scrolls its contents in the horizontal direction

This property controls how the view scroll its contents horizontally. Scrolling can be done either per pixel or per item. Its default value comes from the style via the QStyle::SH_ItemView_ScrollMode style hint.

This property was introduced in Qt 4.2.

Access functions:

ScrollMode horizontalScrollMode() const
void setHorizontalScrollMode(ScrollMode mode)
void resetHorizontalScrollMode()

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

This property holds the size of items' icons

Calls C++ function: QSize QAbstractItemView::iconSize() const.

C++ documentation:

This property holds the size of items' icons

Setting this property when the view is visible will cause the items to be laid out again.

Access functions:

QSize iconSize() const
void setIconSize(const QSize &size)

Notifier signal:

void iconSizeChanged(const QSize &size)

pub unsafe fn index_at(
    &self,
    point: impl CastInto<Ref<QPoint>>
) -> CppBox<QModelIndex>
[src]

Returns the model index of the item at the viewport coordinates point.

Calls C++ function: pure virtual QModelIndex QAbstractItemView::indexAt(const QPoint& point) const.

C++ documentation:

Returns the model index of the item at the viewport coordinates point.

In the base class this is a pure virtual function.

See also visualRect().

pub unsafe fn index_widget(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> QPtr<QWidget>
[src]

Returns the widget for the item at the given index.

Calls C++ function: QWidget* QAbstractItemView::indexWidget(const QModelIndex& index) const.

C++ documentation:

Returns the widget for the item at the given index.

This function was introduced in Qt 4.1.

See also setIndexWidget().

pub unsafe fn input_method_query(
    &self,
    query: InputMethodQuery
) -> CppBox<QVariant>
[src]

Reimplemented from QWidget::inputMethodQuery().

Calls C++ function: virtual QVariant QAbstractItemView::inputMethodQuery(Qt::InputMethodQuery query) const.

C++ documentation:

Reimplemented from QWidget::inputMethodQuery().

pub unsafe fn is_persistent_editor_open(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Returns whether a persistent editor is open for the item at index index.

Calls C++ function: bool QAbstractItemView::isPersistentEditorOpen(const QModelIndex& index) const.

C++ documentation:

Returns whether a persistent editor is open for the item at index index.

This function was introduced in Qt 5.10.

See also openPersistentEditor() and closePersistentEditor().

pub unsafe fn item_delegate_0a(&self) -> QPtr<QAbstractItemDelegate>[src]

Returns the item delegate used by this view and model. This is either one set with setItemDelegate(), or the default one.

Calls C++ function: QAbstractItemDelegate* QAbstractItemView::itemDelegate() const.

C++ documentation:

Returns the item delegate used by this view and model. This is either one set with setItemDelegate(), or the default one.

See also setItemDelegate().

pub unsafe fn item_delegate_1a(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> QPtr<QAbstractItemDelegate>
[src]

Returns the item delegate used by this view and model for the given index.

Calls C++ function: QAbstractItemDelegate* QAbstractItemView::itemDelegate(const QModelIndex& index) const.

C++ documentation:

Returns the item delegate used by this view and model for the given index.

pub unsafe fn item_delegate_for_column(
    &self,
    column: c_int
) -> QPtr<QAbstractItemDelegate>
[src]

Returns the item delegate used by this view and model for the given column. You can call itemDelegate() to get a pointer to the current delegate for a given index.

Calls C++ function: QAbstractItemDelegate* QAbstractItemView::itemDelegateForColumn(int column) const.

C++ documentation:

Returns the item delegate used by this view and model for the given column. You can call itemDelegate() to get a pointer to the current delegate for a given index.

This function was introduced in Qt 4.2.

See also setItemDelegateForColumn(), itemDelegateForRow(), and itemDelegate().

pub unsafe fn item_delegate_for_row(
    &self,
    row: c_int
) -> QPtr<QAbstractItemDelegate>
[src]

Returns the item delegate used by this view and model for the given row, or 0 if no delegate has been assigned. You can call itemDelegate() to get a pointer to the current delegate for a given index.

Calls C++ function: QAbstractItemDelegate* QAbstractItemView::itemDelegateForRow(int row) const.

C++ documentation:

Returns the item delegate used by this view and model for the given row, or 0 if no delegate has been assigned. You can call itemDelegate() to get a pointer to the current delegate for a given index.

This function was introduced in Qt 4.2.

See also setItemDelegateForRow(), itemDelegateForColumn(), and setItemDelegate().

Moves to and selects the item best matching the string search. If no item is found nothing happens.

Calls C++ function: virtual void QAbstractItemView::keyboardSearch(const QString& search).

C++ documentation:

Moves to and selects the item best matching the string search. If no item is found nothing happens.

In the default implementation, the search is reset if search is empty, or the time interval since the last search has exceeded QApplication::keyboardInputInterval().

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

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

pub unsafe fn model(&self) -> QPtr<QAbstractItemModel>[src]

Returns the model that this view is presenting.

Calls C++ function: QAbstractItemModel* QAbstractItemView::model() const.

C++ documentation:

Returns the model that this view is presenting.

See also setModel().

pub unsafe fn open_persistent_editor(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
)
[src]

Opens a persistent editor on the item at the given index. If no editor exists, the delegate will create a new editor.

Calls C++ function: void QAbstractItemView::openPersistentEditor(const QModelIndex& index).

C++ documentation:

Opens a persistent editor on the item at the given index. If no editor exists, the delegate will create a new editor.

See also closePersistentEditor().

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

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

pub unsafe fn reset(&self)[src]

Reset the internal state of the view.

Calls C++ function: virtual [slot] void QAbstractItemView::reset().

C++ documentation:

Reset the internal state of the view.

Warning: This function will reset open editors, scroll bar positions, selections, etc. Existing changes will not be committed. If you would like to save your changes when resetting the view, you can reimplement this function, commit your changes, and then call the superclass' implementation.

pub unsafe fn reset_horizontal_scroll_mode(&self)[src]

how the view scrolls its contents in the horizontal direction

Calls C++ function: void QAbstractItemView::resetHorizontalScrollMode().

C++ documentation:

how the view scrolls its contents in the horizontal direction

This property controls how the view scroll its contents horizontally. Scrolling can be done either per pixel or per item. Its default value comes from the style via the QStyle::SH_ItemView_ScrollMode style hint.

This property was introduced in Qt 4.2.

Access functions:

ScrollMode horizontalScrollMode() const
void setHorizontalScrollMode(ScrollMode mode)
void resetHorizontalScrollMode()

pub unsafe fn reset_vertical_scroll_mode(&self)[src]

how the view scrolls its contents in the vertical direction

Calls C++ function: void QAbstractItemView::resetVerticalScrollMode().

C++ documentation:

how the view scrolls its contents in the vertical direction

This property controls how the view scroll its contents vertically. Scrolling can be done either per pixel or per item. Its default value comes from the style via the QStyle::SH_ItemView_ScrollMode style hint.

This property was introduced in Qt 4.2.

Access functions:

ScrollMode verticalScrollMode() const
void setVerticalScrollMode(ScrollMode mode)
void resetVerticalScrollMode()

pub unsafe fn root_index(&self) -> CppBox<QModelIndex>[src]

Returns the model index of the model's root item. The root item is the parent item to the view's toplevel items. The root can be invalid.

Calls C++ function: QModelIndex QAbstractItemView::rootIndex() const.

C++ documentation:

Returns the model index of the model's root item. The root item is the parent item to the view's toplevel items. The root can be invalid.

See also setRootIndex().

pub unsafe fn scroll_to_2a(
    &self,
    index: impl CastInto<Ref<QModelIndex>>,
    hint: ScrollHint
)
[src]

Scrolls the view if necessary to ensure that the item at index is visible. The view will try to position the item according to the given hint.

Calls C++ function: pure virtual void QAbstractItemView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = …).

C++ documentation:

Scrolls the view if necessary to ensure that the item at index is visible. The view will try to position the item according to the given hint.

In the base class this is a pure virtual function.

pub unsafe fn scroll_to_1a(&self, index: impl CastInto<Ref<QModelIndex>>)[src]

Scrolls the view if necessary to ensure that the item at index is visible. The view will try to position the item according to the given hint.

Calls C++ function: pure virtual void QAbstractItemView::scrollTo(const QModelIndex& index).

C++ documentation:

Scrolls the view if necessary to ensure that the item at index is visible. The view will try to position the item according to the given hint.

In the base class this is a pure virtual function.

pub unsafe fn scroll_to_bottom(&self)[src]

Scrolls the view to the bottom.

Calls C++ function: [slot] void QAbstractItemView::scrollToBottom().

C++ documentation:

Scrolls the view to the bottom.

This function was introduced in Qt 4.1.

See also scrollTo() and scrollToTop().

pub unsafe fn scroll_to_top(&self)[src]

Scrolls the view to the top.

Calls C++ function: [slot] void QAbstractItemView::scrollToTop().

C++ documentation:

Scrolls the view to the top.

This function was introduced in Qt 4.1.

See also scrollTo() and scrollToBottom().

pub unsafe fn select_all(&self)[src]

Selects all items in the view. This function will use the selection behavior set on the view when selecting.

Calls C++ function: virtual [slot] void QAbstractItemView::selectAll().

C++ documentation:

Selects all items in the view. This function will use the selection behavior set on the view when selecting.

See also setSelection(), selectedIndexes(), and clearSelection().

pub unsafe fn selection_behavior(&self) -> SelectionBehavior[src]

This property holds which selection behavior the view uses

Calls C++ function: QAbstractItemView::SelectionBehavior QAbstractItemView::selectionBehavior() const.

C++ documentation:

This property holds which selection behavior the view uses

This property holds whether selections are done in terms of single items, rows or columns.

Access functions:

QAbstractItemView::SelectionBehavior selectionBehavior() const
void setSelectionBehavior(QAbstractItemView::SelectionBehavior behavior)

See also SelectionMode and SelectionBehavior.

pub unsafe fn selection_mode(&self) -> SelectionMode[src]

This property holds which selection mode the view operates in

Calls C++ function: QAbstractItemView::SelectionMode QAbstractItemView::selectionMode() const.

C++ documentation:

This property holds which selection mode the view operates in

This property controls whether the user can select one or many items and, in many-item selections, whether the selection must be a continuous range of items.

Access functions:

QAbstractItemView::SelectionMode selectionMode() const
void setSelectionMode(QAbstractItemView::SelectionMode mode)

See also SelectionMode and SelectionBehavior.

pub unsafe fn selection_model(&self) -> QPtr<QItemSelectionModel>[src]

Returns the current selection model.

Calls C++ function: QItemSelectionModel* QAbstractItemView::selectionModel() const.

C++ documentation:

Returns the current selection model.

See also setSelectionModel() and selectedIndexes().

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

This property holds whether to draw the background using alternating colors

Calls C++ function: void QAbstractItemView::setAlternatingRowColors(bool enable).

C++ documentation:

This property holds whether to draw the background using alternating colors

If this property is true, the item background will be drawn using QPalette::Base and QPalette::AlternateBase; otherwise the background will be drawn using the QPalette::Base color.

By default, this property is false.

Access functions:

bool alternatingRowColors() const
void setAlternatingRowColors(bool enable)

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

This property holds whether autoscrolling in drag move events is enabled

Calls C++ function: void QAbstractItemView::setAutoScroll(bool enable).

C++ documentation:

This property holds whether autoscrolling in drag move events is enabled

If this property is set to true (the default), the QAbstractItemView automatically scrolls the contents of the view if the user drags within 16 pixels of the viewport edge. If the current item changes, then the view will scroll automatically to ensure that the current item is fully visible.

This property only works if the viewport accepts drops. Autoscroll is switched off by setting this property to false.

Access functions:

bool hasAutoScroll() const
void setAutoScroll(bool enable)

pub unsafe fn set_auto_scroll_margin(&self, margin: c_int)[src]

This property holds the size of the area when auto scrolling is triggered

Calls C++ function: void QAbstractItemView::setAutoScrollMargin(int margin).

C++ documentation:

This property holds the size of the area when auto scrolling is triggered

This property controls the size of the area at the edge of the viewport that triggers autoscrolling. The default value is 16 pixels.

This property was introduced in Qt 4.4.

Access functions:

int autoScrollMargin() const
void setAutoScrollMargin(int margin)

pub unsafe fn set_current_index(&self, index: impl CastInto<Ref<QModelIndex>>)[src]

Sets the current item to be the item at index.

Calls C++ function: [slot] void QAbstractItemView::setCurrentIndex(const QModelIndex& index).

C++ documentation:

Sets the current item to be the item at index.

Unless the current selection mode is NoSelection, the item is also selected. Note that this function also updates the starting position for any new selections the user performs.

To set an item as the current item without selecting it, call

selectionModel()->setCurrentIndex(index, QItemSelectionModel::NoUpdate);

See also currentIndex(), currentChanged(), and selectionMode.

pub unsafe fn set_default_drop_action(&self, drop_action: DropAction)[src]

This property holds the drop action that will be used by default in QAbstractItemView::drag()

Calls C++ function: void QAbstractItemView::setDefaultDropAction(Qt::DropAction dropAction).

C++ documentation:

This property holds the drop action that will be used by default in QAbstractItemView::drag()

If the property is not set, the drop action is CopyAction when the supported actions support CopyAction.

This property was introduced in Qt 4.6.

Access functions:

Qt::DropAction defaultDropAction() const
void setDefaultDropAction(Qt::DropAction dropAction)

See also showDropIndicator and dragDropOverwriteMode.

pub unsafe fn set_drag_drop_mode(&self, behavior: DragDropMode)[src]

This property holds the drag and drop event the view will act upon

Calls C++ function: void QAbstractItemView::setDragDropMode(QAbstractItemView::DragDropMode behavior).

C++ documentation:

This property holds the drag and drop event the view will act upon

This property was introduced in Qt 4.2.

Access functions:

DragDropMode dragDropMode() const
void setDragDropMode(DragDropMode behavior)

See also showDropIndicator and dragDropOverwriteMode.

pub unsafe fn set_drag_drop_overwrite_mode(&self, overwrite: bool)[src]

This property holds the view's drag and drop behavior

Calls C++ function: void QAbstractItemView::setDragDropOverwriteMode(bool overwrite).

C++ documentation:

This property holds the view's drag and drop behavior

If its value is true, the selected data will overwrite the existing item data when dropped, while moving the data will clear the item. If its value is false, the selected data will be inserted as a new item when the data is dropped. When the data is moved, the item is removed as well.

The default value is false, as in the QListView and QTreeView subclasses. In the QTableView subclass, on the other hand, the property has been set to true.

Note: This is not intended to prevent overwriting of items. The model's implementation of flags() should do that by not returning Qt::ItemIsDropEnabled.

This property was introduced in Qt 4.2.

Access functions:

bool dragDropOverwriteMode() const
void setDragDropOverwriteMode(bool overwrite)

See also dragDropMode.

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

This property holds whether the view supports dragging of its own items

Calls C++ function: void QAbstractItemView::setDragEnabled(bool enable).

C++ documentation:

This property holds whether the view supports dragging of its own items

Access functions:

bool dragEnabled() const
void setDragEnabled(bool enable)

See also showDropIndicator, DragDropMode, dragDropOverwriteMode, and acceptDrops.

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

This property holds whether the drop indicator is shown when dragging items and dropping.

Calls C++ function: void QAbstractItemView::setDropIndicatorShown(bool enable).

C++ documentation:

This property holds whether the drop indicator is shown when dragging items and dropping.

Access functions:

bool showDropIndicator() const
void setDropIndicatorShown(bool enable)

See also dragEnabled, DragDropMode, dragDropOverwriteMode, and acceptDrops.

pub unsafe fn set_edit_triggers(&self, triggers: QFlags<EditTrigger>)[src]

This property holds which actions will initiate item editing

Calls C++ function: void QAbstractItemView::setEditTriggers(QFlags<QAbstractItemView::EditTrigger> triggers).

C++ documentation:

This property holds which actions will initiate item editing

This property is a selection of flags defined by EditTrigger, combined using the OR operator. The view will only initiate the editing of an item if the action performed is set in this property.

Access functions:

EditTriggers editTriggers() const
void setEditTriggers(EditTriggers triggers)

pub unsafe fn set_horizontal_scroll_mode(&self, mode: ScrollMode)[src]

how the view scrolls its contents in the horizontal direction

Calls C++ function: void QAbstractItemView::setHorizontalScrollMode(QAbstractItemView::ScrollMode mode).

C++ documentation:

how the view scrolls its contents in the horizontal direction

This property controls how the view scroll its contents horizontally. Scrolling can be done either per pixel or per item. Its default value comes from the style via the QStyle::SH_ItemView_ScrollMode style hint.

This property was introduced in Qt 4.2.

Access functions:

ScrollMode horizontalScrollMode() const
void setHorizontalScrollMode(ScrollMode mode)
void resetHorizontalScrollMode()

pub unsafe fn set_icon_size(&self, size: impl CastInto<Ref<QSize>>)[src]

This property holds the size of items' icons

Calls C++ function: void QAbstractItemView::setIconSize(const QSize& size).

C++ documentation:

This property holds the size of items' icons

Setting this property when the view is visible will cause the items to be laid out again.

Access functions:

QSize iconSize() const
void setIconSize(const QSize &size)

Notifier signal:

void iconSizeChanged(const QSize &size)

pub unsafe fn set_index_widget(
    &self,
    index: impl CastInto<Ref<QModelIndex>>,
    widget: impl CastInto<Ptr<QWidget>>
)
[src]

Sets the given widget on the item at the given index, passing the ownership of the widget to the viewport.

Calls C++ function: void QAbstractItemView::setIndexWidget(const QModelIndex& index, QWidget* widget).

C++ documentation:

Sets the given widget on the item at the given index, passing the ownership of the widget to the viewport.

If index is invalid (e.g., if you pass the root index), this function will do nothing.

The given widget's autoFillBackground property must be set to true, otherwise the widget's background will be transparent, showing both the model data and the item at the given index.

If index widget A is replaced with index widget B, index widget A will be deleted. For example, in the code snippet below, the QLineEdit object will be deleted.

setIndexWidget(index, new QLineEdit); ... setIndexWidget(index, new QTextEdit);

This function should only be used to display static content within the visible area corresponding to an item of data. If you want to display custom dynamic content or implement a custom editor widget, subclass QItemDelegate instead.

This function was introduced in Qt 4.1.

See also indexWidget() and Delegate Classes.

pub unsafe fn set_item_delegate(
    &self,
    delegate: impl CastInto<Ptr<QAbstractItemDelegate>>
)
[src]

Sets the item delegate for this view and its model to delegate. This is useful if you want complete control over the editing and display of items.

Calls C++ function: void QAbstractItemView::setItemDelegate(QAbstractItemDelegate* delegate).

C++ documentation:

Sets the item delegate for this view and its model to delegate. This is useful if you want complete control over the editing and display of items.

Any existing delegate will be removed, but not deleted. QAbstractItemView does not take ownership of delegate.

Warning: You should not share the same instance of a delegate between views. Doing so can cause incorrect or unintuitive editing behavior since each view connected to a given delegate may receive the closeEditor() signal, and attempt to access, modify or close an editor that has already been closed.

See also itemDelegate().

pub unsafe fn set_item_delegate_for_column(
    &self,
    column: c_int,
    delegate: impl CastInto<Ptr<QAbstractItemDelegate>>
)
[src]

Sets the given item delegate used by this view and model for the given column. All items on column will be drawn and managed by delegate instead of using the default delegate (i.e., itemDelegate()).

Calls C++ function: void QAbstractItemView::setItemDelegateForColumn(int column, QAbstractItemDelegate* delegate).

C++ documentation:

Sets the given item delegate used by this view and model for the given column. All items on column will be drawn and managed by delegate instead of using the default delegate (i.e., itemDelegate()).

Any existing column delegate for column will be removed, but not deleted. QAbstractItemView does not take ownership of delegate.

Note: If a delegate has been assigned to both a row and a column, the row delegate will take precedence and manage the intersecting cell index.

Warning: You should not share the same instance of a delegate between views. Doing so can cause incorrect or unintuitive editing behavior since each view connected to a given delegate may receive the closeEditor() signal, and attempt to access, modify or close an editor that has already been closed.

This function was introduced in Qt 4.2.

See also itemDelegateForColumn(), setItemDelegateForRow(), and itemDelegate().

pub unsafe fn set_item_delegate_for_row(
    &self,
    row: c_int,
    delegate: impl CastInto<Ptr<QAbstractItemDelegate>>
)
[src]

Sets the given item delegate used by this view and model for the given row. All items on row will be drawn and managed by delegate instead of using the default delegate (i.e., itemDelegate()).

Calls C++ function: void QAbstractItemView::setItemDelegateForRow(int row, QAbstractItemDelegate* delegate).

C++ documentation:

Sets the given item delegate used by this view and model for the given row. All items on row will be drawn and managed by delegate instead of using the default delegate (i.e., itemDelegate()).

Any existing row delegate for row will be removed, but not deleted. QAbstractItemView does not take ownership of delegate.

Note: If a delegate has been assigned to both a row and a column, the row delegate (i.e., this delegate) will take precedence and manage the intersecting cell index.

Warning: You should not share the same instance of a delegate between views. Doing so can cause incorrect or unintuitive editing behavior since each view connected to a given delegate may receive the closeEditor() signal, and attempt to access, modify or close an editor that has already been closed.

This function was introduced in Qt 4.2.

See also itemDelegateForRow(), setItemDelegateForColumn(), and itemDelegate().

pub unsafe fn set_model(&self, model: impl CastInto<Ptr<QAbstractItemModel>>)[src]

Sets the model for the view to present.

Calls C++ function: virtual void QAbstractItemView::setModel(QAbstractItemModel* model).

C++ documentation:

Sets the model for the view to present.

This function will create and set a new selection model, replacing any model that was previously set with setSelectionModel(). However, the old selection model will not be deleted as it may be shared between several views. We recommend that you delete the old selection model if it is no longer required. This is done with the following code:

QItemSelectionModel *m = view->selectionModel(); view->setModel(new model); delete m;

If both the old model and the old selection model do not have parents, or if their parents are long-lived objects, it may be preferable to call their deleteLater() functions to explicitly delete them.

The view does not take ownership of the model unless it is the model's parent object because the model may be shared between many different views.

See also model(), selectionModel(), and setSelectionModel().

pub unsafe fn set_root_index(&self, index: impl CastInto<Ref<QModelIndex>>)[src]

Sets the root item to the item at the given index.

Calls C++ function: virtual [slot] void QAbstractItemView::setRootIndex(const QModelIndex& index).

C++ documentation:

Sets the root item to the item at the given index.

See also rootIndex().

pub unsafe fn set_selection_behavior(&self, behavior: SelectionBehavior)[src]

This property holds which selection behavior the view uses

Calls C++ function: void QAbstractItemView::setSelectionBehavior(QAbstractItemView::SelectionBehavior behavior).

C++ documentation:

This property holds which selection behavior the view uses

This property holds whether selections are done in terms of single items, rows or columns.

Access functions:

QAbstractItemView::SelectionBehavior selectionBehavior() const
void setSelectionBehavior(QAbstractItemView::SelectionBehavior behavior)

See also SelectionMode and SelectionBehavior.

pub unsafe fn set_selection_mode(&self, mode: SelectionMode)[src]

This property holds which selection mode the view operates in

Calls C++ function: void QAbstractItemView::setSelectionMode(QAbstractItemView::SelectionMode mode).

C++ documentation:

This property holds which selection mode the view operates in

This property controls whether the user can select one or many items and, in many-item selections, whether the selection must be a continuous range of items.

Access functions:

QAbstractItemView::SelectionMode selectionMode() const
void setSelectionMode(QAbstractItemView::SelectionMode mode)

See also SelectionMode and SelectionBehavior.

pub unsafe fn set_selection_model(
    &self,
    selection_model: impl CastInto<Ptr<QItemSelectionModel>>
)
[src]

Sets the current selection model to the given selectionModel.

Calls C++ function: virtual void QAbstractItemView::setSelectionModel(QItemSelectionModel* selectionModel).

C++ documentation:

Sets the current selection model to the given selectionModel.

Note that, if you call setModel() after this function, the given selectionModel will be replaced by one created by the view.

Note: It is up to the application to delete the old selection model if it is no longer needed; i.e., if it is not being used by other views. This will happen automatically when its parent object is deleted. However, if it does not have a parent, or if the parent is a long-lived object, it may be preferable to call its deleteLater() function to explicitly delete it.

See also selectionModel(), setModel(), and clearSelection().

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

This property holds whether item navigation with tab and backtab is enabled.

Calls C++ function: void QAbstractItemView::setTabKeyNavigation(bool enable).

C++ documentation:

This property holds whether item navigation with tab and backtab is enabled.

Access functions:

bool tabKeyNavigation() const
void setTabKeyNavigation(bool enable)

pub unsafe fn set_text_elide_mode(&self, mode: TextElideMode)[src]

This property holds the position of the "..." in elided text.

Calls C++ function: void QAbstractItemView::setTextElideMode(Qt::TextElideMode mode).

C++ documentation:

This property holds the position of the "..." in elided text.

The default value for all item views is Qt::ElideRight.

Access functions:

Qt::TextElideMode textElideMode() const
void setTextElideMode(Qt::TextElideMode mode)

pub unsafe fn set_vertical_scroll_mode(&self, mode: ScrollMode)[src]

how the view scrolls its contents in the vertical direction

Calls C++ function: void QAbstractItemView::setVerticalScrollMode(QAbstractItemView::ScrollMode mode).

C++ documentation:

how the view scrolls its contents in the vertical direction

This property controls how the view scroll its contents vertically. Scrolling can be done either per pixel or per item. Its default value comes from the style via the QStyle::SH_ItemView_ScrollMode style hint.

This property was introduced in Qt 4.2.

Access functions:

ScrollMode verticalScrollMode() const
void setVerticalScrollMode(ScrollMode mode)
void resetVerticalScrollMode()

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

This property holds whether the drop indicator is shown when dragging items and dropping.

Calls C++ function: bool QAbstractItemView::showDropIndicator() const.

C++ documentation:

This property holds whether the drop indicator is shown when dragging items and dropping.

Access functions:

bool showDropIndicator() const
void setDropIndicatorShown(bool enable)

See also dragEnabled, DragDropMode, dragDropOverwriteMode, and acceptDrops.

pub unsafe fn size_hint_for_column(&self, column: c_int) -> c_int[src]

Returns the width size hint for the specified column or -1 if there is no model.

Calls C++ function: virtual int QAbstractItemView::sizeHintForColumn(int column) const.

C++ documentation:

Returns the width size hint for the specified column or -1 if there is no model.

This function is used in views with a horizontal header to find the size hint for a header section based on the contents of the given column.

See also sizeHintForRow().

pub unsafe fn size_hint_for_index(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QSize>
[src]

Returns the size hint for the item with the specified index or an invalid size for invalid indexes.

Calls C++ function: QSize QAbstractItemView::sizeHintForIndex(const QModelIndex& index) const.

C++ documentation:

Returns the size hint for the item with the specified index or an invalid size for invalid indexes.

See also sizeHintForRow() and sizeHintForColumn().

pub unsafe fn size_hint_for_row(&self, row: c_int) -> c_int[src]

Returns the height size hint for the specified row or -1 if there is no model.

Calls C++ function: virtual int QAbstractItemView::sizeHintForRow(int row) const.

C++ documentation:

Returns the height size hint for the specified row or -1 if there is no model.

The returned height is calculated using the size hints of the given row's items, i.e. the returned value is the maximum height among the items. Note that to control the height of a row, you must reimplement the QAbstractItemDelegate::sizeHint() function.

This function is used in views with a vertical header to find the size hint for a header section based on the contents of the given row.

See also sizeHintForColumn().

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

This property holds whether item navigation with tab and backtab is enabled.

Calls C++ function: bool QAbstractItemView::tabKeyNavigation() const.

C++ documentation:

This property holds whether item navigation with tab and backtab is enabled.

Access functions:

bool tabKeyNavigation() const
void setTabKeyNavigation(bool enable)

pub unsafe fn text_elide_mode(&self) -> TextElideMode[src]

This property holds the position of the "..." in elided text.

Calls C++ function: Qt::TextElideMode QAbstractItemView::textElideMode() const.

C++ documentation:

This property holds the position of the "..." in elided text.

The default value for all item views is Qt::ElideRight.

Access functions:

Qt::TextElideMode textElideMode() const
void setTextElideMode(Qt::TextElideMode mode)

pub unsafe fn update(&self, index: impl CastInto<Ref<QModelIndex>>)[src]

Updates the area occupied by the given index.

Calls C++ function: [slot] void QAbstractItemView::update(const QModelIndex& index).

C++ documentation:

Updates the area occupied by the given index.

This function was introduced in Qt 4.3.

pub unsafe fn vertical_scroll_mode(&self) -> ScrollMode[src]

how the view scrolls its contents in the vertical direction

Calls C++ function: QAbstractItemView::ScrollMode QAbstractItemView::verticalScrollMode() const.

C++ documentation:

how the view scrolls its contents in the vertical direction

This property controls how the view scroll its contents vertically. Scrolling can be done either per pixel or per item. Its default value comes from the style via the QStyle::SH_ItemView_ScrollMode style hint.

This property was introduced in Qt 4.2.

Access functions:

ScrollMode verticalScrollMode() const
void setVerticalScrollMode(ScrollMode mode)
void resetVerticalScrollMode()

pub unsafe fn visual_rect(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QRect>
[src]

Returns the rectangle on the viewport occupied by the item at index.

Calls C++ function: pure virtual QRect QAbstractItemView::visualRect(const QModelIndex& index) const.

C++ documentation:

Returns the rectangle on the viewport occupied by the item at index.

If your item is displayed in several areas then visualRect should return the primary area that contains index and not the complete area that index might encompasses, touch or cause drawing.

In the base class this is a pure virtual function.

See also indexAt() and visualRegionForSelection().

Trait Implementations

impl CppDeletable for QHeaderView[src]

unsafe fn delete(&self)[src]

Destroys the header.

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

C++ documentation:

Destroys the header.

impl Deref for QHeaderView[src]

type Target = QAbstractItemView

The resulting type after dereferencing.

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

Calls C++ function: QAbstractItemView* static_cast<QAbstractItemView*>(QHeaderView* ptr).

impl DynamicCast<QHeaderView> for QAbstractItemView[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractItemView>) -> Ptr<QHeaderView>[src]

Calls C++ function: QHeaderView* dynamic_cast<QHeaderView*>(QAbstractItemView* ptr).

impl DynamicCast<QHeaderView> for QAbstractScrollArea[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractScrollArea>) -> Ptr<QHeaderView>[src]

Calls C++ function: QHeaderView* dynamic_cast<QHeaderView*>(QAbstractScrollArea* ptr).

impl DynamicCast<QHeaderView> for QFrame[src]

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

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

impl DynamicCast<QHeaderView> for QWidget[src]

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

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

impl DynamicCast<QHeaderView> for QObject[src]

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

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

impl DynamicCast<QHeaderView> for QPaintDevice[src]

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

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

impl StaticDowncast<QHeaderView> for QAbstractItemView[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractItemView>) -> Ptr<QHeaderView>[src]

Calls C++ function: QHeaderView* static_cast<QHeaderView*>(QAbstractItemView* ptr).

impl StaticDowncast<QHeaderView> for QAbstractScrollArea[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractScrollArea>) -> Ptr<QHeaderView>[src]

Calls C++ function: QHeaderView* static_cast<QHeaderView*>(QAbstractScrollArea* ptr).

impl StaticDowncast<QHeaderView> for QFrame[src]

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

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

impl StaticDowncast<QHeaderView> for QWidget[src]

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

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

impl StaticDowncast<QHeaderView> for QObject[src]

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

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

impl StaticDowncast<QHeaderView> for QPaintDevice[src]

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

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

impl StaticUpcast<QAbstractItemView> for QHeaderView[src]

unsafe fn static_upcast(ptr: Ptr<QHeaderView>) -> Ptr<QAbstractItemView>[src]

Calls C++ function: QAbstractItemView* static_cast<QAbstractItemView*>(QHeaderView* ptr).

impl StaticUpcast<QAbstractScrollArea> for QHeaderView[src]

unsafe fn static_upcast(ptr: Ptr<QHeaderView>) -> Ptr<QAbstractScrollArea>[src]

Calls C++ function: QAbstractScrollArea* static_cast<QAbstractScrollArea*>(QHeaderView* ptr).

impl StaticUpcast<QFrame> for QHeaderView[src]

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

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

impl StaticUpcast<QObject> for QHeaderView[src]

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

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

impl StaticUpcast<QPaintDevice> for QHeaderView[src]

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

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

impl StaticUpcast<QWidget> for QHeaderView[src]

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

Calls C++ function: QWidget* static_cast<QWidget*>(QHeaderView* 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.