![]() ![]() See also previewWidget() and updatePreviewWidget(). The widget becomes a child of the column view, and will be destroyed when the column area is deleted or when a new widget is set. void QColumnView:: setPreviewWidget( QWidget * widget) Reimplements: QAbstractItemView::setModel(QAbstractItemModel *model). ![]() ![]() void QColumnView:: setModel( QAbstractItemModel * model) See also columnWidths() and createColumn(). If list contains too few values, only width of the rest of the columns will not be modified. Extra values in the list are kept and used when the columns are created. Sets the column widths to the values given in the list. void QColumnView:: setColumnWidths(const QList & list) Reimplements: QAbstractItemView::selectAll(). Reimplements: QAbstractItemView::scrollTo(const QModelIndex &index, QAbstractItemView::ScrollHint hint). void QColumnView:: scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint = EnsureVisible) Reimplements: QAbstractScrollArea::scrollContentsBy(int dx, int dy). void QColumnView:: scrollContentsBy( int dx, int dy) Reimplements: QAbstractItemView::rowsInserted(const QModelIndex &parent, int start, int end). void QColumnView:: rowsInserted(const QModelIndex & parent, int start, int end) Reimplements: QAbstractItemView::resizeEvent(QResizeEvent *event). void QColumnView:: resizeEvent( QResizeEvent * event) See also setPreviewWidget() and updatePreviewWidget(). Returns the preview widget, or nullptr if there is none. Move left should go to the parent index Move right should go to the child index or down if there is no child QWidget *QColumnView:: previewWidget() const Reimplements: QAbstractItemView::moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers). QModelIndex QColumnView:: moveCursor( QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers) Reimplements: QAbstractItemView::isIndexHidden(const QModelIndex &index) const. bool QColumnView:: isIndexHidden(const QModelIndex & index) const This can be useful when reimplementing createColumn(). void QColumnView:: initializeColumn( QAbstractItemView * column) constĬopies the behavior and options of the column view and applies them to the column such as the iconSize(), textElideMode() and alternatingRowColors(). Reimplements: QAbstractItemView::indexAt(const QPoint &point) const. QModelIndex QColumnView:: indexAt(const QPoint & point) const Reimplements: QAbstractItemView::horizontalOffset() const. int QColumnView:: horizontalOffset() const Reimplements: QAbstractItemView::currentChanged(const QModelIndex ¤t, const QModelIndex &previous). void QColumnView:: currentChanged(const QModelIndex & current, const QModelIndex & previous) QColumnView will automatically take ownership of the widget. index is the root index that will be assigned to the view. To use a custom widget for the final column when you select an item overload this function and return a widget. QAbstractItemView *QColumnView:: createColumn(const QModelIndex & index) Returns a list of the width of all the columns in this view. QColumnView:: ~QColumnView()ĭestroys the column view. This signal is emitted when the preview widget should be updated to provide rich information about index void QColumnView:: updatePreviewWidget(const QModelIndex & index) Member Function Documentation QColumnView:: QColumnView( QWidget * parent = nullptr)Ĭonstructs a column view with a parent to represent a model's data. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |