[][src]Struct qt_widgets::QTableView

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

The QTableView class provides a default model/view implementation of a table view.

C++ class: QTableView.

C++ documentation:

The QTableView class provides a default model/view implementation of a table view.

A QTableView implements a table view that displays items from a model. This class is used to provide standard tables that were previously provided by the QTable class, but using the more flexible approach provided by Qt's model/view architecture.

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

QTableView implements the interfaces defined by the QAbstractItemView class to allow it to display data provided by models derived from the QAbstractItemModel class.

Methods

impl QTableView[src]

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

Selects the given row in the table view if the current SelectionMode and SelectionBehavior allows rows to be selected.

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

C++ documentation:

Selects the given row in the table view if the current SelectionMode and SelectionBehavior allows rows to be selected.

See also selectColumn().

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

Selects the given column in the table view if the current SelectionMode and SelectionBehavior allows columns to be selected.

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

C++ documentation:

Selects the given column in the table view if the current SelectionMode and SelectionBehavior allows columns to be selected.

See also selectRow().

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

Hide the given row.

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

C++ documentation:

Hide the given row.

See also showRow() and hideColumn().

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

Hide the given column.

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

C++ documentation:

Hide the given column.

See also showColumn() and hideRow().

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

Show the given row.

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

C++ documentation:

Show the given row.

See also hideRow() and showColumn().

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

Show the given column.

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

C++ documentation:

Show the given column.

See also hideColumn() and showRow().

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

Resizes the given row based on the size hints of the delegate used to render each item in the row.

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

C++ documentation:

Resizes the given row based on the size hints of the delegate used to render each item in the row.

See also resizeRowsToContents(), sizeHintForRow(), and QHeaderView::resizeContentsPrecision().

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

Resizes all rows based on the size hints of the delegate used to render each item in the rows.

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

C++ documentation:

Resizes all rows based on the size hints of the delegate used to render each item in the rows.

See also resizeRowToContents(), sizeHintForRow(), and QHeaderView::resizeContentsPrecision().

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

Resizes the given column based on the size hints of the delegate used to render each item in the column.

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

C++ documentation:

Resizes the given column based on the size hints of the delegate used to render each item in the column.

Note: Only visible columns will be resized. Reimplement sizeHintForColumn() to resize hidden columns as well.

See also resizeColumnsToContents(), sizeHintForColumn(), and QHeaderView::resizeContentsPrecision().

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

Resizes all columns based on the size hints of the delegate used to render each item in the columns.

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

C++ documentation:

Resizes all columns based on the size hints of the delegate used to render each item in the columns.

See also resizeColumnToContents(), sizeHintForColumn(), and QHeaderView::resizeContentsPrecision().

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

Sorts the model by the values in the given column in the given order.

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

Warning: no exact match found in C++ documentation. Below is the C++ documentation for void QTableView::sortByColumn(int column, Qt::SortOrder order):

Sorts the model by the values in the given column in the given order.

This function was introduced in Qt 4.2.

See also sortingEnabled.

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

This property holds whether the grid is shown

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

C++ documentation:

This property holds whether the grid is shown

If this property is true a grid is drawn for the table; if the property is false, no grid is drawn. The default value is true.

Access functions:

bool showGrid() const
void setShowGrid(bool show)

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

This slot is called to change the index of the given row in the table view. The old index is specified by oldIndex, and the new index by newIndex.

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

C++ documentation:

This slot is called to change the index of the given row in the table view. The old index is specified by oldIndex, and the new index by newIndex.

See also columnMoved().

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

This slot is called to change the index of the given column in the table view. The old index is specified by oldIndex, and the new index by newIndex.

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

C++ documentation:

This slot is called to change the index of the given column in the table view. The old index is specified by oldIndex, and the new index by newIndex.

See also rowMoved().

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

This slot is called to change the height of the given row. The old height is specified by oldHeight, and the new height by newHeight.

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

C++ documentation:

This slot is called to change the height of the given row. The old height is specified by oldHeight, and the new height by newHeight.

See also columnResized().

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

This slot is called to change the width of the given column. The old width is specified by oldWidth, and the new width by newWidth.

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

C++ documentation:

This slot is called to change the width of the given column. The old width is specified by oldWidth, and the new width by newWidth.

See also rowResized().

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

This slot is called whenever rows are added or deleted. The previous number of rows is specified by oldCount, and the new number of rows is specified by newCount.

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

C++ documentation:

This slot is called whenever rows are added or deleted. The previous number of rows is specified by oldCount, and the new number of rows is specified by newCount.

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

This slot is called whenever columns are added or deleted. The previous number of columns is specified by oldCount, and the new number of columns is specified by newCount.

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

C++ documentation:

This slot is called whenever columns are added or deleted. The previous number of columns is specified by oldCount, and the new number of columns is specified by newCount.

pub unsafe fn clear_spans(&mut self)[src]

Removes all row and column spans in the table view.

Calls C++ function: void QTableView::clearSpans().

C++ documentation:

Removes all row and column spans in the table view.

This function was introduced in Qt 4.4.

See also setSpan().

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

Returns the column in which the given x-coordinate, x, in contents coordinates is located.

Calls C++ function: int QTableView::columnAt(int x) const.

C++ documentation:

Returns the column in which the given x-coordinate, x, in contents coordinates is located.

Note: This function returns -1 if the given coordinate is not valid (has no column).

See also rowAt().

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

Returns the column span of the table element at (row, column). The default is 1.

Calls C++ function: int QTableView::columnSpan(int row, int column) const.

C++ documentation:

Returns the column span of the table element at (row, column). The default is 1.

This function was introduced in Qt 4.2.

See also setSpan() and rowSpan().

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

Returns the x-coordinate in contents coordinates of the given column.

Calls C++ function: int QTableView::columnViewportPosition(int column) const.

C++ documentation:

Returns the x-coordinate in contents coordinates of the given column.

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

Returns the width of the given column.

Calls C++ function: int QTableView::columnWidth(int column) const.

C++ documentation:

Returns the width of the given column.

See also setColumnWidth(), resizeColumnToContents(), and rowHeight().

pub unsafe fn do_items_layout(&mut self)[src]

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

pub unsafe fn grid_style(&self) -> PenStyle[src]

This property holds the pen style used to draw the grid.

Calls C++ function: Qt::PenStyle QTableView::gridStyle() const.

C++ documentation:

This property holds the pen style used to draw the grid.

This property holds the style used when drawing the grid (see showGrid).

Access functions:

Qt::PenStyle gridStyle() const
void setGridStyle(Qt::PenStyle style)

pub unsafe fn hide_column(&mut self, column: c_int)[src]

Hide the given column.

Calls C++ function: [slot] void QTableView::hideColumn(int column).

C++ documentation:

Hide the given column.

See also showColumn() and hideRow().

pub unsafe fn hide_row(&mut self, row: c_int)[src]

Hide the given row.

Calls C++ function: [slot] void QTableView::hideRow(int row).

C++ documentation:

Hide the given row.

See also showRow() and hideColumn().

pub unsafe fn horizontal_header(&self) -> MutPtr<QHeaderView>[src]

Returns the table view's horizontal header.

Calls C++ function: QHeaderView* QTableView::horizontalHeader() const.

C++ documentation:

Returns the table view's horizontal header.

See also setHorizontalHeader(), verticalHeader(), and QAbstractItemModel::headerData().

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

Reimplemented from QAbstractItemView::indexAt().

Calls C++ function: virtual QModelIndex QTableView::indexAt(const QPoint& p) const.

C++ documentation:

Reimplemented from QAbstractItemView::indexAt().

Returns the index position of the model item corresponding to the table item at position pos in contents coordinates.

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

Returns true if the given column is hidden; otherwise returns false.

Calls C++ function: bool QTableView::isColumnHidden(int column) const.

C++ documentation:

Returns true if the given column is hidden; otherwise returns false.

See also isRowHidden().

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

This property holds whether the button in the top-left corner is enabled

Calls C++ function: bool QTableView::isCornerButtonEnabled() const.

C++ documentation:

This property holds whether the button in the top-left corner is enabled

If this property is true then button in the top-left corner of the table view is enabled. Clicking on this button will select all the cells in the table view.

This property is true by default.

This property was introduced in Qt 4.3.

Access functions:

bool isCornerButtonEnabled() const
void setCornerButtonEnabled(bool enable)

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

Returns true if the given row is hidden; otherwise returns false.

Calls C++ function: bool QTableView::isRowHidden(int row) const.

C++ documentation:

Returns true if the given row is hidden; otherwise returns false.

See also isColumnHidden().

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

This property holds whether sorting is enabled

Calls C++ function: bool QTableView::isSortingEnabled() const.

C++ documentation:

This property holds whether sorting is enabled

If this property is true, sorting is enabled for the table. If this property is false, sorting is not enabled. The default value is false.

Note: . Setting the property to true with setSortingEnabled() immediately triggers a call to sortByColumn() with the current sort section and order.

This property was introduced in Qt 4.2.

Access functions:

bool isSortingEnabled() const
void setSortingEnabled(bool enable)

See also sortByColumn().

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

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

pub unsafe fn new_1a(
    parent: impl CastInto<MutPtr<QWidget>>
) -> CppBox<QTableView>
[src]

Constructs a table view with a parent to represent the data.

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

C++ documentation:

Constructs a table view with a parent to represent the data.

See also QAbstractItemModel.

pub unsafe fn new_0a() -> CppBox<QTableView>[src]

The QTableView class provides a default model/view implementation of a table view.

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

C++ documentation:

The QTableView class provides a default model/view implementation of a table view.

A QTableView implements a table view that displays items from a model. This class is used to provide standard tables that were previously provided by the QTable class, but using the more flexible approach provided by Qt's model/view architecture.

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

QTableView implements the interfaces defined by the QAbstractItemView class to allow it to display data provided by models derived from the QAbstractItemModel class.

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

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

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

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

pub unsafe fn resize_column_to_contents(&mut self, column: c_int)[src]

Resizes the given column based on the size hints of the delegate used to render each item in the column.

Calls C++ function: [slot] void QTableView::resizeColumnToContents(int column).

C++ documentation:

Resizes the given column based on the size hints of the delegate used to render each item in the column.

Note: Only visible columns will be resized. Reimplement sizeHintForColumn() to resize hidden columns as well.

See also resizeColumnsToContents(), sizeHintForColumn(), and QHeaderView::resizeContentsPrecision().

pub unsafe fn resize_columns_to_contents(&mut self)[src]

Resizes all columns based on the size hints of the delegate used to render each item in the columns.

Calls C++ function: [slot] void QTableView::resizeColumnsToContents().

C++ documentation:

Resizes all columns based on the size hints of the delegate used to render each item in the columns.

See also resizeColumnToContents(), sizeHintForColumn(), and QHeaderView::resizeContentsPrecision().

pub unsafe fn resize_row_to_contents(&mut self, row: c_int)[src]

Resizes the given row based on the size hints of the delegate used to render each item in the row.

Calls C++ function: [slot] void QTableView::resizeRowToContents(int row).

C++ documentation:

Resizes the given row based on the size hints of the delegate used to render each item in the row.

See also resizeRowsToContents(), sizeHintForRow(), and QHeaderView::resizeContentsPrecision().

pub unsafe fn resize_rows_to_contents(&mut self)[src]

Resizes all rows based on the size hints of the delegate used to render each item in the rows.

Calls C++ function: [slot] void QTableView::resizeRowsToContents().

C++ documentation:

Resizes all rows based on the size hints of the delegate used to render each item in the rows.

See also resizeRowToContents(), sizeHintForRow(), and QHeaderView::resizeContentsPrecision().

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

Returns the row in which the given y-coordinate, y, in contents coordinates is located.

Calls C++ function: int QTableView::rowAt(int y) const.

C++ documentation:

Returns the row in which the given y-coordinate, y, in contents coordinates is located.

Note: This function returns -1 if the given coordinate is not valid (has no row).

See also columnAt().

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

Returns the height of the given row.

Calls C++ function: int QTableView::rowHeight(int row) const.

C++ documentation:

Returns the height of the given row.

See also setRowHeight(), resizeRowToContents(), and columnWidth().

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

Returns the row span of the table element at (row, column). The default is 1.

Calls C++ function: int QTableView::rowSpan(int row, int column) const.

C++ documentation:

Returns the row span of the table element at (row, column). The default is 1.

This function was introduced in Qt 4.2.

See also setSpan() and columnSpan().

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

Returns the y-coordinate in contents coordinates of the given row.

Calls C++ function: int QTableView::rowViewportPosition(int row) const.

C++ documentation:

Returns the y-coordinate in contents coordinates of the given row.

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

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

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

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

pub unsafe fn select_column(&mut self, column: c_int)[src]

Selects the given column in the table view if the current SelectionMode and SelectionBehavior allows columns to be selected.

Calls C++ function: [slot] void QTableView::selectColumn(int column).

C++ documentation:

Selects the given column in the table view if the current SelectionMode and SelectionBehavior allows columns to be selected.

See also selectRow().

pub unsafe fn select_row(&mut self, row: c_int)[src]

Selects the given row in the table view if the current SelectionMode and SelectionBehavior allows rows to be selected.

Calls C++ function: [slot] void QTableView::selectRow(int row).

C++ documentation:

Selects the given row in the table view if the current SelectionMode and SelectionBehavior allows rows to be selected.

See also selectColumn().

pub unsafe fn set_column_hidden(&mut self, column: c_int, hide: bool)[src]

If hide is true the given column will be hidden; otherwise it will be shown.

Calls C++ function: void QTableView::setColumnHidden(int column, bool hide).

C++ documentation:

If hide is true the given column will be hidden; otherwise it will be shown.

See also isColumnHidden() and setRowHidden().

pub unsafe fn set_column_width(&mut self, column: c_int, width: c_int)[src]

Sets the width of the given column to be width.

Calls C++ function: void QTableView::setColumnWidth(int column, int width).

C++ documentation:

Sets the width of the given column to be width.

This function was introduced in Qt 4.1.

See also columnWidth().

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

This property holds whether the button in the top-left corner is enabled

Calls C++ function: void QTableView::setCornerButtonEnabled(bool enable).

C++ documentation:

This property holds whether the button in the top-left corner is enabled

If this property is true then button in the top-left corner of the table view is enabled. Clicking on this button will select all the cells in the table view.

This property is true by default.

This property was introduced in Qt 4.3.

Access functions:

bool isCornerButtonEnabled() const
void setCornerButtonEnabled(bool enable)

pub unsafe fn set_grid_style(&mut self, style: PenStyle)[src]

This property holds the pen style used to draw the grid.

Calls C++ function: void QTableView::setGridStyle(Qt::PenStyle style).

C++ documentation:

This property holds the pen style used to draw the grid.

This property holds the style used when drawing the grid (see showGrid).

Access functions:

Qt::PenStyle gridStyle() const
void setGridStyle(Qt::PenStyle style)

pub unsafe fn set_horizontal_header(
    &mut self,
    header: impl CastInto<MutPtr<QHeaderView>>
)
[src]

Sets the widget to use for the horizontal header to header.

Calls C++ function: void QTableView::setHorizontalHeader(QHeaderView* header).

C++ documentation:

Sets the widget to use for the horizontal header to header.

See also horizontalHeader() and setVerticalHeader().

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

Reimplemented from QAbstractItemView::setModel().

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

C++ documentation:

Reimplemented from QAbstractItemView::setModel().

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

Reimplemented from QAbstractItemView::setRootIndex().

Calls C++ function: virtual void QTableView::setRootIndex(const QModelIndex& index).

C++ documentation:

Reimplemented from QAbstractItemView::setRootIndex().

pub unsafe fn set_row_height(&mut self, row: c_int, height: c_int)[src]

Sets the height of the given row to be height.

Calls C++ function: void QTableView::setRowHeight(int row, int height).

C++ documentation:

Sets the height of the given row to be height.

This function was introduced in Qt 4.1.

See also rowHeight().

pub unsafe fn set_row_hidden(&mut self, row: c_int, hide: bool)[src]

If hide is true row will be hidden, otherwise it will be shown.

Calls C++ function: void QTableView::setRowHidden(int row, bool hide).

C++ documentation:

If hide is true row will be hidden, otherwise it will be shown.

See also isRowHidden() and setColumnHidden().

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

Reimplemented from QAbstractItemView::setSelectionModel().

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

C++ documentation:

Reimplemented from QAbstractItemView::setSelectionModel().

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

This property holds whether the grid is shown

Calls C++ function: [slot] void QTableView::setShowGrid(bool show).

C++ documentation:

This property holds whether the grid is shown

If this property is true a grid is drawn for the table; if the property is false, no grid is drawn. The default value is true.

Access functions:

bool showGrid() const
void setShowGrid(bool show)

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

If enable is true, enables sorting for the table and immediately trigger a call to sortByColumn() with the current sort section and order

Calls C++ function: void QTableView::setSortingEnabled(bool enable).

C++ documentation:

If enable is true, enables sorting for the table and immediately trigger a call to sortByColumn() with the current sort section and order

Note: Setter function for property sortingEnabled.

See also isSortingEnabled().

pub unsafe fn set_span(
    &mut self,
    row: c_int,
    column: c_int,
    row_span: c_int,
    column_span: c_int
)
[src]

Sets the span of the table element at (row, column) to the number of rows and columns specified by (rowSpanCount, columnSpanCount).

Calls C++ function: void QTableView::setSpan(int row, int column, int rowSpan, int columnSpan).

C++ documentation:

Sets the span of the table element at (row, column) to the number of rows and columns specified by (rowSpanCount, columnSpanCount).

This function was introduced in Qt 4.2.

See also rowSpan() and columnSpan().

pub unsafe fn set_vertical_header(
    &mut self,
    header: impl CastInto<MutPtr<QHeaderView>>
)
[src]

Sets the widget to use for the vertical header to header.

Calls C++ function: void QTableView::setVerticalHeader(QHeaderView* header).

C++ documentation:

Sets the widget to use for the vertical header to header.

See also verticalHeader() and setHorizontalHeader().

pub unsafe fn set_word_wrap(&mut self, on: bool)[src]

This property holds the item text word-wrapping policy

Calls C++ function: void QTableView::setWordWrap(bool on).

C++ documentation:

This property holds the item text word-wrapping policy

If this property is true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. This property is true by default.

Note that even of wrapping is enabled, the cell will not be expanded to fit all text. Ellipsis will be inserted according to the current textElideMode.

This property was introduced in Qt 4.3.

Access functions:

bool wordWrap() const
void setWordWrap(bool on)

pub unsafe fn show_column(&mut self, column: c_int)[src]

Show the given column.

Calls C++ function: [slot] void QTableView::showColumn(int column).

C++ documentation:

Show the given column.

See also hideColumn() and showRow().

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

This property holds whether the grid is shown

Calls C++ function: bool QTableView::showGrid() const.

C++ documentation:

This property holds whether the grid is shown

If this property is true a grid is drawn for the table; if the property is false, no grid is drawn. The default value is true.

Access functions:

bool showGrid() const
void setShowGrid(bool show)

pub unsafe fn show_row(&mut self, row: c_int)[src]

Show the given row.

Calls C++ function: [slot] void QTableView::showRow(int row).

C++ documentation:

Show the given row.

See also hideRow() and showColumn().

pub unsafe fn sort_by_column_2a(&mut self, column: c_int, order: SortOrder)[src]

Sorts the model by the values in the given column in the given order.

Calls C++ function: void QTableView::sortByColumn(int column, Qt::SortOrder order).

C++ documentation:

Sorts the model by the values in the given column in the given order.

This function was introduced in Qt 4.2.

See also sortingEnabled.

pub unsafe fn sort_by_column_1a(&mut self, column: c_int)[src]

Sorts the model by the values in the given column in the given order.

Calls C++ function: [slot] void QTableView::sortByColumn(int column).

Warning: no exact match found in C++ documentation. Below is the C++ documentation for void QTableView::sortByColumn(int column, Qt::SortOrder order):

Sorts the model by the values in the given column in the given order.

This function was introduced in Qt 4.2.

See also sortingEnabled.

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

Returns a reference to the staticMetaObject field.

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

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

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

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

pub unsafe fn vertical_header(&self) -> MutPtr<QHeaderView>[src]

Returns the table view's vertical header.

Calls C++ function: QHeaderView* QTableView::verticalHeader() const.

C++ documentation:

Returns the table view's vertical header.

See also setVerticalHeader(), horizontalHeader(), and QAbstractItemModel::headerData().

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

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

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

This property holds the item text word-wrapping policy

Calls C++ function: bool QTableView::wordWrap() const.

C++ documentation:

This property holds the item text word-wrapping policy

If this property is true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. This property is true by default.

Note that even of wrapping is enabled, the cell will not be expanded to fit all text. Ellipsis will be inserted according to the current textElideMode.

This property was introduced in Qt 4.3.

Access functions:

bool wordWrap() const
void setWordWrap(bool on)

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(&mut 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(
    &mut 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(&mut 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(&mut 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>>
) -> MutPtr<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]

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().

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn item_delegate_0a(&self) -> MutPtr<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>>
) -> MutPtr<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
) -> MutPtr<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
) -> MutPtr<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) -> MutPtr<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(
    &mut 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(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*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(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

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

pub unsafe fn reset(&mut 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(&mut 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(&mut 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(
    &mut 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(&mut 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(&mut 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(&mut 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(&mut 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) -> MutPtr<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(&mut 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(&mut 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(&mut 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(
    &mut 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(&mut 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(&mut 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(&mut 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(&mut 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(&mut 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(&mut 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(&mut 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(&mut 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(
    &mut self,
    index: impl CastInto<Ref<QModelIndex>>,
    widget: impl CastInto<MutPtr<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(
    &mut self,
    delegate: impl CastInto<MutPtr<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(
    &mut self,
    column: c_int,
    delegate: impl CastInto<MutPtr<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(
    &mut self,
    row: c_int,
    delegate: impl CastInto<MutPtr<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(
    &mut self,
    model: impl CastInto<MutPtr<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(&mut 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(&mut 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(&mut 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(
    &mut self,
    selection_model: impl CastInto<MutPtr<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(&mut 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(&mut 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(&mut 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(&mut 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 Deref for QTableView[src]

type Target = QAbstractItemView

The resulting type after dereferencing.

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

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

impl DerefMut for QTableView[src]

fn deref_mut(&mut self) -> &mut QAbstractItemView[src]

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

impl StaticUpcast<QAbstractItemView> for QTableView[src]

unsafe fn static_upcast(ptr: Ptr<QTableView>) -> Ptr<QAbstractItemView>[src]

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

unsafe fn static_upcast_mut(
    ptr: MutPtr<QTableView>
) -> MutPtr<QAbstractItemView>
[src]

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

impl StaticUpcast<QAbstractScrollArea> for QTableView[src]

unsafe fn static_upcast(ptr: Ptr<QTableView>) -> Ptr<QAbstractScrollArea>[src]

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

unsafe fn static_upcast_mut(
    ptr: MutPtr<QTableView>
) -> MutPtr<QAbstractScrollArea>
[src]

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

impl StaticUpcast<QFrame> for QTableView[src]

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

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

unsafe fn static_upcast_mut(ptr: MutPtr<QTableView>) -> MutPtr<QFrame>[src]

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

impl StaticUpcast<QWidget> for QTableView[src]

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

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

unsafe fn static_upcast_mut(ptr: MutPtr<QTableView>) -> MutPtr<QWidget>[src]

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

impl StaticUpcast<QObject> for QTableView[src]

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

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

unsafe fn static_upcast_mut(ptr: MutPtr<QTableView>) -> MutPtr<QObject>[src]

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

impl StaticUpcast<QPaintDevice> for QTableView[src]

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

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

unsafe fn static_upcast_mut(ptr: MutPtr<QTableView>) -> MutPtr<QPaintDevice>[src]

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

impl StaticUpcast<QTableView> for QTableWidget[src]

unsafe fn static_upcast(ptr: Ptr<QTableWidget>) -> Ptr<QTableView>[src]

Calls C++ function: QTableView* static_cast<QTableView*>(QTableWidget* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QTableWidget>) -> MutPtr<QTableView>[src]

Calls C++ function: QTableView* static_cast<QTableView*>(QTableWidget* ptr).

impl StaticDowncast<QTableView> for QAbstractItemView[src]

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

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

unsafe fn static_downcast_mut(
    ptr: MutPtr<QAbstractItemView>
) -> MutPtr<QTableView>
[src]

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

impl StaticDowncast<QTableView> for QAbstractScrollArea[src]

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

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

unsafe fn static_downcast_mut(
    ptr: MutPtr<QAbstractScrollArea>
) -> MutPtr<QTableView>
[src]

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

impl StaticDowncast<QTableView> for QFrame[src]

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

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

unsafe fn static_downcast_mut(ptr: MutPtr<QFrame>) -> MutPtr<QTableView>[src]

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

impl StaticDowncast<QTableView> for QWidget[src]

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

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

unsafe fn static_downcast_mut(ptr: MutPtr<QWidget>) -> MutPtr<QTableView>[src]

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

impl StaticDowncast<QTableView> for QObject[src]

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

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

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QTableView>[src]

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

impl StaticDowncast<QTableView> for QPaintDevice[src]

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

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

unsafe fn static_downcast_mut(ptr: MutPtr<QPaintDevice>) -> MutPtr<QTableView>[src]

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

impl StaticDowncast<QTableWidget> for QTableView[src]

unsafe fn static_downcast(ptr: Ptr<QTableView>) -> Ptr<QTableWidget>[src]

Calls C++ function: QTableWidget* static_cast<QTableWidget*>(QTableView* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QTableView>) -> MutPtr<QTableWidget>[src]

Calls C++ function: QTableWidget* static_cast<QTableWidget*>(QTableView* ptr).

impl DynamicCast<QTableView> for QAbstractItemView[src]

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

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

unsafe fn dynamic_cast_mut(ptr: MutPtr<QAbstractItemView>) -> MutPtr<QTableView>[src]

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

impl DynamicCast<QTableView> for QAbstractScrollArea[src]

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

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

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QAbstractScrollArea>
) -> MutPtr<QTableView>
[src]

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

impl DynamicCast<QTableView> for QFrame[src]

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

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

unsafe fn dynamic_cast_mut(ptr: MutPtr<QFrame>) -> MutPtr<QTableView>[src]

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

impl DynamicCast<QTableView> for QWidget[src]

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

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

unsafe fn dynamic_cast_mut(ptr: MutPtr<QWidget>) -> MutPtr<QTableView>[src]

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

impl DynamicCast<QTableView> for QObject[src]

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

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

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QTableView>[src]

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

impl DynamicCast<QTableView> for QPaintDevice[src]

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

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

unsafe fn dynamic_cast_mut(ptr: MutPtr<QPaintDevice>) -> MutPtr<QTableView>[src]

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

impl DynamicCast<QTableWidget> for QTableView[src]

unsafe fn dynamic_cast(ptr: Ptr<QTableView>) -> Ptr<QTableWidget>[src]

Calls C++ function: QTableWidget* dynamic_cast<QTableWidget*>(QTableView* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QTableView>) -> MutPtr<QTableWidget>[src]

Calls C++ function: QTableWidget* dynamic_cast<QTableWidget*>(QTableView* ptr).

impl CppDeletable for QTableView[src]

unsafe fn delete(&mut self)[src]

Destroys the table view.

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

C++ documentation:

Destroys the table view.

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<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.

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

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

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

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

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