PySide6.QtWidgets.QColumnView¶
- class QColumnView¶
- The - QColumnViewclass provides a model/view implementation of a column view. More…- Synopsis¶- Properties¶- resizeGripsVisibleᅟ- The way to specify if the list views gets resize grips or not
 - Methods¶- def - __init__()
- def - columnWidths()
- def - previewWidget()
 - Virtual methods¶- def - createColumn()
 - Signals¶- Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- QColumnViewdisplays a model in a number of QListViews, one for each hierarchy in the tree. This is sometimes referred to as a cascading list.- The - QColumnViewclass is one of the Model/View Classes and is part of Qt’s model/view framework .- QColumnViewimplements the interfaces defined by the- QAbstractItemViewclass to allow it to display data provided by models derived from the QAbstractItemModel class.  - See also - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property resizeGripsVisibleᅟ: bool¶
 - This property holds the way to specify if the list views gets resize grips or not. - By default, - visibleis set to true- See also - setRootIndex()- Access functions:
 - Constructs a column view with a - parentto represent a model’s data. Use- setModel()to set the model.- See also - columnWidths()¶
- Return type:
- .list of int 
 
 - Returns a list of the width of all the columns in this view. - See also - createColumn(rootIndex)¶
- Parameters:
- rootIndex – - QModelIndex
- Return type:
 
 - To use a custom widget for the final column when you select an item overload this function and return a widget. - indexis the root index that will be assigned to the view.- Return the new view. - QColumnViewwill automatically take ownership of the widget.- See also - initializeColumn(column)¶
- Parameters:
- column – - QAbstractItemView
 
 - Copies the behavior and options of the column view and applies them to the - columnsuch as the- iconSize(),- textElideMode()and- alternatingRowColors(). This can be useful when reimplementing- createColumn().- See also - Returns the preview widget, or - Noneif there is none.- See also - resizeGripsVisible()¶
- Return type:
- bool 
 - See also 
 - Getter of property - resizeGripsVisibleᅟ.- setColumnWidths(list)¶
- Parameters:
- list – .list of int 
 
 - 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 - Sets the preview - widget.- The - widgetbecomes 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 - setResizeGripsVisible(visible)¶
- Parameters:
- visible – bool 
 - See also 
 - Setter of property - resizeGripsVisibleᅟ.- updatePreviewWidget(index)¶
- Parameters:
- index – - QModelIndex
 
 - This signal is emitted when the preview widget should be updated to provide rich information about - index- See also