QColumnView Class ReferenceThe QColumnView class provides a model/view implementation of a column view. More... #include <QColumnView> Inherits: QAbstractItemView. This class was introduced in Qt 4.3. Properties
Public Functions
Reimplemented Public Functions
Signals
Protected Functions
Reimplemented Protected Functions
Additional Inherited Members
Detailed DescriptionThe QColumnView class provides a model/view implementation of a column view. QColumnView displays a model in a number of QListViews, one for each hierarchy in the tree. This is sometimes referred to as a cascading list. The QColumnView class is one of the Model/View Classes and is part of Qt's model/view framework. QColumnView implements the interfaces defined by the QAbstractItemView class to allow it to display data provided by models derived from the QAbstractItemModel class. See also Model/View Programming. Property Documentation
|
bool | resizeGripsVisible () const |
void | setResizeGripsVisible ( bool visible ) |
See also setRootIndex().
Constructs a column view with a parent to represent a model's data. Use setModel() to set the model.
See also QAbstractItemModel.
Destroys the column view.
Returns a list of the width of all the columns in this view.
See also setColumnWidths().
To use a custom widget for the final column when you select an item overload this function and return a widget. index is the root index that will be assigned to the view.
Return the new view. QColumnView will automatically take ownership of the widget.
See also setPreviewWidget().
Reimplemented from QAbstractItemView::currentChanged().
Reimplemented from QAbstractItemView::horizontalOffset().
Reimplemented from QAbstractItemView::indexAt().
Copies the behavior and options of the column view and applies them to the column such as the iconSize(), textElideMode() and alternatingRowColors(). This can be useful when reimplementing createColumn().
This function was introduced in Qt 4.4.
See also createColumn().
Reimplemented from QAbstractItemView::isIndexHidden().
Reimplemented from QAbstractItemView::moveCursor().
Move left should go to the parent index Move right should go to the child index or down if there is no child
Returns the preview widget, or 0 if there is none.
See also setPreviewWidget() and updatePreviewWidget().
Reimplemented from QWidget::resizeEvent().
Reimplemented from QAbstractItemView::rowsInserted().
Reimplemented from QAbstractScrollArea::scrollContentsBy().
Reimplemented from QAbstractItemView::scrollTo().
Reimplemented from QAbstractItemView::selectAll().
Sets the column widths to the values given in the list. Extra values in the list are kept and used when the columns are created.
If list contains too few values, only width of the rest of the columns will not be modified.
See also columnWidths() and createColumn().
Reimplemented from QAbstractItemView::setModel().
Sets the preview widget.
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.
See also previewWidget() and updatePreviewWidget().
Reimplemented from QAbstractItemView::setRootIndex().
Reimplemented from QAbstractItemView::setSelection().
Reimplemented from QAbstractItemView::setSelectionModel().
Reimplemented from QWidget::sizeHint().
This signal is emitted when the preview widget should be updated to provide rich information about index
See also previewWidget().
Reimplemented from QAbstractItemView::verticalOffset().
Reimplemented from QAbstractItemView::visualRect().
Reimplemented from QAbstractItemView::visualRegionForSelection().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.8 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com