QHeaderView Class Reference
[QtGui module]
Inherits QAbstractItemView.
Types
- enum ResizeMode { Interactive, Fixed, Stretch, ResizeToContents, Custom }
Methods
- __init__ (self, Qt.Orientation, QWidget parent = None)
- bool cascadingSectionResizes (self)
- int count (self)
- currentChanged (self, QModelIndex, QModelIndex)
- dataChanged (self, QModelIndex, QModelIndex)
- Qt.Alignment defaultAlignment (self)
- int defaultSectionSize (self)
- doItemsLayout (self)
- bool event (self, QEvent)
- headerDataChanged (self, Qt.Orientation, int, int)
- int hiddenSectionCount (self)
- hideSection (self, int)
- bool highlightSections (self)
- int horizontalOffset (self)
- QModelIndex indexAt (self, QPoint)
- initialize (self)
- initializeSections (self)
- initializeSections (self, int, int)
- initStyleOption (self, QStyleOptionHeader)
- bool isClickable (self)
- bool isIndexHidden (self, QModelIndex)
- bool isMovable (self)
- bool isSectionHidden (self, int)
- bool isSortIndicatorShown (self)
- int length (self)
- int logicalIndex (self, int)
- int logicalIndexAt (self, int)
- int logicalIndexAt (self, int, int)
- int logicalIndexAt (self, QPoint)
- int minimumSectionSize (self)
- mouseDoubleClickEvent (self, QMouseEvent)
- mouseMoveEvent (self, QMouseEvent)
- mousePressEvent (self, QMouseEvent)
- mouseReleaseEvent (self, QMouseEvent)
- QModelIndex moveCursor (self, QAbstractItemView.CursorAction, Qt.KeyboardModifiers)
- moveSection (self, int, int)
- int offset (self)
- Qt.Orientation orientation (self)
- paintEvent (self, QPaintEvent)
- paintSection (self, QPainter, QRect, int)
- reset (self)
- ResizeMode resizeMode (self, int)
- resizeSection (self, int, int)
- resizeSections (self)
- resizeSections (self, ResizeMode)
- bool restoreState (self, QByteArray)
- rowsInserted (self, QModelIndex, int, int)
- QByteArray saveState (self)
- scrollContentsBy (self, int, int)
- scrollTo (self, QModelIndex, QAbstractItemView.ScrollHint)
- int sectionPosition (self, int)
- sectionsAboutToBeRemoved (self, QModelIndex, int, int)
- bool sectionsHidden (self)
- sectionsInserted (self, QModelIndex, int, int)
- int sectionSize (self, int)
- QSize sectionSizeFromContents (self, int)
- int sectionSizeHint (self, int)
- bool sectionsMoved (self)
- int sectionViewportPosition (self, int)
- setCascadingSectionResizes (self, bool)
- setClickable (self, bool)
- setDefaultAlignment (self, Qt.Alignment)
- setDefaultSectionSize (self, int)
- setHighlightSections (self, bool)
- setMinimumSectionSize (self, int)
- setModel (self, QAbstractItemModel)
- setMovable (self, bool)
- setOffset (self, int)
- setOffsetToLastSection (self)
- setOffsetToSectionPosition (self, int)
- setResizeMode (self, ResizeMode)
- setResizeMode (self, int, ResizeMode)
- setSectionHidden (self, int, bool)
- setSelection (self, QRect, QItemSelectionModel.SelectionFlags)
- setSortIndicator (self, int, Qt.SortOrder)
- setSortIndicatorShown (self, bool)
- setStretchLastSection (self, bool)
- showSection (self, int)
- QSize sizeHint (self)
- Qt.SortOrder sortIndicatorOrder (self)
- int sortIndicatorSection (self)
- bool stretchLastSection (self)
- int stretchSectionCount (self)
- swapSections (self, int, int)
- updateGeometries (self)
- updateSection (self, int)
- int verticalOffset (self)
- bool viewportEvent (self, QEvent)
- int visualIndex (self, int)
- int visualIndexAt (self, int)
- QRect visualRect (self, QModelIndex)
- QRegion visualRegionForSelection (self, QItemSelection)
Special Methods
Qt Signals
Detailed Description
Type Documentation
QHeaderView.ResizeMode
Method Documentation
QHeaderView.__init__ (self, Qt.Orientation, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
bool QHeaderView.cascadingSectionResizes (self)
int QHeaderView.count (self)
Qt.Alignment QHeaderView.defaultAlignment (self)
int QHeaderView.defaultSectionSize (self)
QHeaderView.doItemsLayout (self)
bool QHeaderView.event (self, QEvent)
QHeaderView.headerDataChanged (self, Qt.Orientation, int, int)
This method is also a Qt slot with the C++ signature void headerDataChanged(Qt::Orientation,int,int).
int QHeaderView.hiddenSectionCount (self)
QHeaderView.hideSection (self, int)
bool QHeaderView.highlightSections (self)
int QHeaderView.horizontalOffset (self)
QHeaderView.initialize (self)
QHeaderView.initializeSections (self)
QHeaderView.initializeSections (self, int, int)
bool QHeaderView.isClickable (self)
bool QHeaderView.isIndexHidden (self, QModelIndex)
bool QHeaderView.isMovable (self)
bool QHeaderView.isSectionHidden (self, int)
bool QHeaderView.isSortIndicatorShown (self)
int QHeaderView.length (self)
int QHeaderView.logicalIndex (self, int)
int QHeaderView.logicalIndexAt (self, int)
int QHeaderView.logicalIndexAt (self, int, int)
int QHeaderView.logicalIndexAt (self, QPoint)
int QHeaderView.minimumSectionSize (self)
QHeaderView.mouseDoubleClickEvent (self, QMouseEvent)
QHeaderView.mouseMoveEvent (self, QMouseEvent)
QHeaderView.mousePressEvent (self, QMouseEvent)
QHeaderView.mouseReleaseEvent (self, QMouseEvent)
QHeaderView.moveSection (self, int, int)
int QHeaderView.offset (self)
Qt.Orientation QHeaderView.orientation (self)
QHeaderView.paintEvent (self, QPaintEvent)
QHeaderView.paintSection (self, QPainter, QRect, int)
QHeaderView.reset (self)
ResizeMode QHeaderView.resizeMode (self, int)
QHeaderView.resizeSection (self, int, int)
QHeaderView.resizeSections (self)
This method is also a Qt slot with the C++ signature void resizeSections().
QHeaderView.resizeSections (self, ResizeMode)
bool QHeaderView.restoreState (self, QByteArray)
QHeaderView.rowsInserted (self, QModelIndex, int, int)
QByteArray QHeaderView.saveState (self)
QHeaderView.scrollContentsBy (self, int, int)
int QHeaderView.sectionPosition (self, int)
QHeaderView.sectionsAboutToBeRemoved (self, QModelIndex, int, int)
This method is also a Qt slot with the C++ signature void sectionsAboutToBeRemoved(const QModelIndex&,int,int).
bool QHeaderView.sectionsHidden (self)
QHeaderView.sectionsInserted (self, QModelIndex, int, int)
This method is also a Qt slot with the C++ signature void sectionsInserted(const QModelIndex&,int,int).
int QHeaderView.sectionSize (self, int)
QSize QHeaderView.sectionSizeFromContents (self, int)
int QHeaderView.sectionSizeHint (self, int)
bool QHeaderView.sectionsMoved (self)
int QHeaderView.sectionViewportPosition (self, int)
QHeaderView.setCascadingSectionResizes (self, bool)
QHeaderView.setClickable (self, bool)
QHeaderView.setDefaultAlignment (self, Qt.Alignment)
QHeaderView.setDefaultSectionSize (self, int)
QHeaderView.setHighlightSections (self, bool)
QHeaderView.setMinimumSectionSize (self, int)
QHeaderView.setMovable (self, bool)
QHeaderView.setOffset (self, int)
This method is also a Qt slot with the C++ signature void setOffset(int).
QHeaderView.setOffsetToLastSection (self)
This method is also a Qt slot with the C++ signature void setOffsetToLastSection().
QHeaderView.setOffsetToSectionPosition (self, int)
This method is also a Qt slot with the C++ signature void setOffsetToSectionPosition(int).
QHeaderView.setResizeMode (self, ResizeMode)
QHeaderView.setResizeMode (self, int, ResizeMode)
QHeaderView.setSectionHidden (self, int, bool)
QHeaderView.setSortIndicator (self, int, Qt.SortOrder)
QHeaderView.setSortIndicatorShown (self, bool)
QHeaderView.setStretchLastSection (self, bool)
QHeaderView.showSection (self, int)
QSize QHeaderView.sizeHint (self)
Qt.SortOrder QHeaderView.sortIndicatorOrder (self)
int QHeaderView.sortIndicatorSection (self)
bool QHeaderView.stretchLastSection (self)
int QHeaderView.stretchSectionCount (self)
QHeaderView.swapSections (self, int, int)
QHeaderView.updateGeometries (self)
QHeaderView.updateSection (self, int)
This method is also a Qt slot with the C++ signature void updateSection(int).
int QHeaderView.verticalOffset (self)
bool QHeaderView.viewportEvent (self, QEvent)
int QHeaderView.visualIndex (self, int)
int QHeaderView.visualIndexAt (self, int)
QRegion QHeaderView.visualRegionForSelection (self, QItemSelection)
QHeaderView.__len__ (self)
Qt Signal Documentation
void geometriesChanged ()
This is the default overload of this signal.
void sectionAutoResize (int,QHeaderView::ResizeMode)
This is the default overload of this signal.
void sectionClicked (int)
This is the default overload of this signal.
void sectionCountChanged (int,int)
This is the default overload of this signal.
void sectionDoubleClicked (int)
This is the default overload of this signal.
void sectionEntered (int)
This is the default overload of this signal.
void sectionHandleDoubleClicked (int)
This is the default overload of this signal.
void sectionMoved (int,int,int)
This is the default overload of this signal.
void sectionPressed (int)
This is the default overload of this signal.
void sectionResized (int,int,int)
This is the default overload of this signal.
void sortIndicatorChanged (int,Qt::SortOrder)
This is the default overload of this signal.