|
| QHeaderView (Qt::Orientation orientation, QWidget *parent=nullptr) |
|
virtual | ~QHeaderView () |
|
bool | cascadingSectionResizes () const |
|
int | count () const |
|
Qt::Alignment | defaultAlignment () const |
|
int | defaultSectionSize () const |
|
int | hiddenSectionCount () const |
|
void | hideSection (int logicalIndex) |
|
bool | highlightSections () const |
|
bool | isSectionHidden (int logicalIndex) const |
|
bool | isSortIndicatorShown () const |
|
int | length () const |
|
int | logicalIndex (int visualIndex) const |
|
int | logicalIndexAt (const QPoint &pos) const |
|
int | logicalIndexAt (int position) const |
|
int | logicalIndexAt (int x, int y) const |
|
int | maximumSectionSize () const |
|
int | minimumSectionSize () const |
|
void | moveSection (int from, int to) |
|
int | offset () const |
|
Qt::Orientation | orientation () const |
|
void | reset () override |
|
void | resetDefaultSectionSize () |
|
int | resizeContentsPrecision () const |
|
void | resizeSection (int logicalIndex, int size) |
|
void | resizeSections (QHeaderView::ResizeMode mode) |
|
bool | restoreState (const QByteArray &state) |
|
QByteArray | saveState () const |
|
int | sectionPosition (int logicalIndex) const |
|
ResizeMode | sectionResizeMode (int logicalIndex) const |
|
bool | sectionsClickable () const |
|
bool | sectionsHidden () const |
|
int | sectionSize (int logicalIndex) const |
|
int | sectionSizeHint (int logicalIndex) const |
|
bool | sectionsMovable () const |
|
bool | sectionsMoved () const |
|
int | sectionViewportPosition (int logicalIndex) const |
|
void | setCascadingSectionResizes (bool enable) |
|
void | setDefaultAlignment (Qt::Alignment alignment) |
|
void | setDefaultSectionSize (int size) |
|
void | setHighlightSections (bool highlight) |
|
void | setMaximumSectionSize (int size) |
|
void | setMinimumSectionSize (int size) |
|
void | setModel (QAbstractItemModel *model) override |
|
void | setResizeContentsPrecision (int precision) |
|
void | setSectionHidden (int logicalIndex, bool hide) |
|
void | setSectionResizeMode (int logicalIndex, ResizeMode mode) |
|
void | setSectionResizeMode (ResizeMode mode) |
|
void | setSectionsClickable (bool clickable) |
|
void | setSectionsMovable (bool movable) |
|
void | setSortIndicator (int logicalIndex, Qt::SortOrder order) |
|
void | setSortIndicatorShown (bool show) |
|
void | setStretchLastSection (bool stretch) |
|
void | setVisible (bool visible) override |
|
void | showSection (int logicalIndex) |
|
QSize | sizeHint () const override |
|
Qt::SortOrder | sortIndicatorOrder () const |
|
int | sortIndicatorSection () const |
|
bool | stretchLastSection () const |
|
int | stretchSectionCount () const |
|
void | swapSections (int first, int second) |
|
int | visualIndex (int logicalIndex) const |
|
int | visualIndexAt (int position) const |
|
| QAbstractItemView (QWidget *parent=nullptr) |
|
| ~QAbstractItemView () |
|
bool | alternatingRowColors () const |
|
int | autoScrollMargin () const |
|
void | closePersistentEditor (const QModelIndex &index) |
|
QModelIndex | currentIndex () const |
|
Qt::DropAction | defaultDropAction () const |
|
DragDropMode | dragDropMode () const |
|
bool | dragDropOverwriteMode () const |
|
bool | dragEnabled () const |
|
EditTriggers | editTriggers () const |
|
bool | hasAutoScroll () const |
|
ScrollMode | horizontalScrollMode () const |
|
QSize | iconSize () const |
|
QWidget * | indexWidget (const QModelIndex &index) const |
|
QVariant | inputMethodQuery (Qt::InputMethodQuery query) const override |
|
QAbstractItemDelegate * | itemDelegate () const |
|
QAbstractItemDelegate * | itemDelegate (const QModelIndex &index) const |
|
QAbstractItemDelegate * | itemDelegateForColumn (int column) const |
|
QAbstractItemDelegate * | itemDelegateForRow (int row) const |
|
virtual void | keyboardSearch (const QString &search) |
|
QAbstractItemModel * | model () const |
|
void | openPersistentEditor (const QModelIndex &index) |
|
QModelIndex | rootIndex () const |
|
QAbstractItemView::SelectionBehavior | selectionBehavior () const |
|
QAbstractItemView::SelectionMode | selectionMode () const |
|
QItemSelectionModel * | selectionModel () const |
|
void | setAlternatingRowColors (bool enable) |
|
void | setAutoScroll (bool enable) |
|
void | setAutoScrollMargin (int margin) |
|
void | setDefaultDropAction (Qt::DropAction dropAction) |
|
void | setDragDropMode (DragDropMode behavior) |
|
void | setDragDropOverwriteMode (bool overwrite) |
|
void | setDragEnabled (bool enable) |
|
void | setDropIndicatorShown (bool enable) |
|
void | setEditTriggers (EditTriggers triggers) |
|
void | setHorizontalScrollMode (ScrollMode mode) |
|
void | setIconSize (const QSize &size) |
|
void | setIndexWidget (const QModelIndex &index, QWidget *widget) |
|
void | setItemDelegate (QAbstractItemDelegate *delegate) |
|
void | setItemDelegateForColumn (int column, QAbstractItemDelegate *delegate) |
|
void | setItemDelegateForRow (int row, QAbstractItemDelegate *delegate) |
|
void | setSelectionBehavior (QAbstractItemView::SelectionBehavior behavior) |
|
void | setSelectionMode (QAbstractItemView::SelectionMode mode) |
|
virtual void | setSelectionModel (QItemSelectionModel *selectionModel) |
|
void | setTabKeyNavigation (bool enable) |
|
void | setTextElideMode (Qt::TextElideMode mode) |
|
void | setVerticalScrollMode (ScrollMode mode) |
|
bool | showDropIndicator () const |
|
virtual int | sizeHintForColumn (int column) const |
|
QSize | sizeHintForIndex (const QModelIndex &index) const |
|
virtual int | sizeHintForRow (int row) const |
|
bool | tabKeyNavigation () const |
|
Qt::TextElideMode | textElideMode () const |
|
ScrollMode | verticalScrollMode () const |
|
| QAbstractScrollArea (QWidget *parent=nullptr) |
|
| ~QAbstractScrollArea () |
|
void | addScrollBarWidget (QWidget *widget, Qt::Alignment alignment) |
|
QWidget * | cornerWidget () const |
|
QScrollBar * | horizontalScrollBar () const |
|
Qt::ScrollBarPolicy | horizontalScrollBarPolicy () const |
|
QSize | maximumViewportSize () const |
|
QSize | minimumSizeHint () const override |
|
QWidgetList | scrollBarWidgets (Qt::Alignment alignment) |
|
void | setCornerWidget (QWidget *widget) |
|
void | setHorizontalScrollBar (QScrollBar *scrollBar) |
|
void | setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy policy) |
|
void | setSizeAdjustPolicy (SizeAdjustPolicy policy) |
|
virtual void | setupViewport (QWidget *viewport) |
|
void | setVerticalScrollBar (QScrollBar *scrollBar) |
|
void | setVerticalScrollBarPolicy (Qt::ScrollBarPolicy policy) |
|
void | setViewport (QWidget *widget) |
|
SizeAdjustPolicy | sizeAdjustPolicy () const |
|
QSize | sizeHint () const override |
|
QScrollBar * | verticalScrollBar () const |
|
Qt::ScrollBarPolicy | verticalScrollBarPolicy () const |
|
QWidget * | viewport () const |
|
| QFrame (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::EmptyFlag) |
|
| ~QFrame () |
|
QRect | frameRect () const |
|
Shadow | frameShadow () const |
|
Shape | frameShape () const |
|
int | frameStyle () const |
|
int | frameWidth () const |
|
int | lineWidth () const |
|
int | midLineWidth () const |
|
void | setFrameRect (const QRect &rect) |
|
void | setFrameShadow (Shadow value) |
|
void | setFrameShape (Shape value) |
|
void | setFrameStyle (int style) |
|
void | setLineWidth (int width) |
|
void | setMidLineWidth (int width) |
|
QSize | sizeHint () const override |
|
| QWidget (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::EmptyFlag) |
|
| ~QWidget () |
|
bool | acceptDrops () const |
|
QString | accessibleDescription () const |
|
QString | accessibleName () const |
|
QList< QAction * > | actions () const |
|
void | activateWindow () |
|
void | addAction (QAction *action) |
|
void | addActions (const QList< QAction * > &actions) |
|
void | adjustSize () |
|
bool | autoFillBackground () const |
|
QPalette::ColorRole | backgroundRole () const |
|
QBackingStore * | backingStore () const |
|
QSize | baseSize () const |
|
QWidget * | childAt (const QPoint &position) const |
|
QWidget * | childAt (int x, int y) const |
|
QRect | childrenRect () const |
|
QRegion | childrenRegion () const |
|
void | clearFocus () |
|
void | clearMask () |
|
QMargins | contentsMargins () const |
|
QRect | contentsRect () const |
|
Qt::ContextMenuPolicy | contextMenuPolicy () const |
|
QCursor | cursor () const |
|
WId | effectiveWinId () const |
|
void | ensurePolished () const |
|
Qt::FocusPolicy | focusPolicy () const |
|
QWidget * | focusProxy () const |
|
QWidget * | focusWidget () const |
|
const QFont & | font () const |
|
QFontInfo | fontInfo () const |
|
QFontMetrics | fontMetrics () const |
|
QPalette::ColorRole | foregroundRole () const |
|
QRect | frameGeometry () const |
|
QSize | frameSize () const |
|
const QRect & | geometry () const |
|
void | getContentsMargins (int *left, int *top, int *right, int *bottom) const |
|
QPixmap | grab (const QRect &rectangle=QRect (QPoint (0, 0), QSize (-1,-1))) |
|
void | grabGesture (Qt::GestureType gestureType, Qt::GestureFlags flags=Qt::GestureFlags ()) |
|
void | grabKeyboard () |
|
void | grabMouse () |
|
void | grabMouse (const QCursor &cursor) |
|
int | grabShortcut (const QKeySequence &key, Qt::ShortcutContext context=Qt::WindowShortcut) |
|
QGraphicsEffect * | graphicsEffect () const |
|
QGraphicsProxyWidget * | graphicsProxyWidget () const |
|
bool | hasEditFocus () const |
|
bool | hasFocus () const |
|
virtual bool | hasHeightForWidth () const |
|
bool | hasMouseTracking () const |
|
int | height () const |
|
virtual int | heightForWidth (int width) const |
|
Qt::InputMethodHints | inputMethodHints () const |
|
void | insertAction (QAction *before, QAction *action) |
|
void | insertActions (QAction *before, QList< QAction * > actions) |
|
bool | isActiveWindow () const |
|
bool | isAncestorOf (const QWidget *child) const |
|
bool | isEnabled () const |
|
bool | isEnabledTo (const QWidget *parent) const |
|
bool | isEnabledToTLW () const |
|
bool | isFullScreen () const |
|
bool | isHidden () const |
|
bool | isMaximized () const |
|
bool | isMinimized () const |
|
bool | isModal () const |
|
bool | isTopLevel () const |
|
bool | isVisible () const |
|
bool | isVisibleTo (const QWidget *parent) const |
|
bool | isWindow () const |
|
bool | isWindowModified () const |
|
QLayout * | layout () const |
|
Qt::LayoutDirection | layoutDirection () const |
|
QLocale | locale () const |
|
QPoint | mapFrom (const QWidget *parent, const QPoint &pos) const |
|
QPoint | mapFromGlobal (const QPoint &pos) const |
|
QPoint | mapFromParent (const QPoint &pos) const |
|
QPoint | mapTo (const QWidget *parent, const QPoint &pos) const |
|
QPoint | mapToGlobal (const QPoint &pos) const |
|
QPoint | mapToParent (const QPoint &pos) const |
|
QRegion | mask () const |
|
int | maximumHeight () const |
|
QSize | maximumSize () const |
|
int | maximumWidth () const |
|
int | minimumHeight () const |
|
QSize | minimumSize () const |
|
int | minimumWidth () const |
|
void | move (const QPoint &point) |
|
void | move (int x, int y) |
|
QWidget * | nativeParentWidget () const |
|
QWidget * | nextInFocusChain () const |
|
QRect | normalGeometry () const |
|
void | overrideWindowFlags (Qt::WindowFlags flags) |
|
QPaintEngine * | paintEngine () const override |
|
const QPalette & | palette () const |
|
QWidget * | parentWidget () const |
|
QPoint | pos () const |
|
QWidget * | previousInFocusChain () const |
|
QRect | rect () const |
|
void | releaseKeyboard () |
|
void | releaseMouse () |
|
void | releaseShortcut (int id) |
|
void | removeAction (QAction *action) |
|
void | render (QPaintDevice *target, const QPoint &targetOffset=QPoint (), const QRegion &sourceRegion=QRegion (), RenderFlags renderFlags=RenderFlags (DrawWindowBackground|DrawChildren)) |
|
void | render (QPainter *painter, const QPoint &targetOffset=QPoint (), const QRegion &sourceRegion=QRegion (), RenderFlags renderFlags=RenderFlags (DrawWindowBackground|DrawChildren)) |
|
void | repaint (const QRect &rect) |
|
void | repaint (const QRegion ®ion) |
|
void | repaint (int x, int y, int w, int h) |
|
void | resize (const QSize &size) |
|
void | resize (int w, int h) |
|
bool | restoreGeometry (const QByteArray &geometry) |
|
QByteArray | saveGeometry () const |
|
void | scroll (int dx, int dy) |
|
void | scroll (int dx, int dy, const QRect &rect) |
|
void | setAcceptDrops (bool on) |
|
void | setAccessibleDescription (const QString &description) |
|
void | setAccessibleName (const QString &name) |
|
void | setAttribute (Qt::WidgetAttribute attribute, bool enable=true) |
|
void | setAutoFillBackground (bool enable) |
|
void | setBackgroundRole (QPalette::ColorRole role) |
|
void | setBaseSize (const QSize &size) |
|
void | setBaseSize (int basew, int baseh) |
|
void | setContentsMargins (const QMargins &margins) |
|
void | setContentsMargins (int left, int top, int right, int bottom) |
|
void | setContextMenuPolicy (Qt::ContextMenuPolicy policy) |
|
void | setCursor (const QCursor &cursor) |
|
void | setEditFocus (bool enable) |
|
void | setFixedHeight (int h) |
|
void | setFixedSize (const QSize &size) |
|
void | setFixedSize (int w, int h) |
|
void | setFixedWidth (int w) |
|
void | setFocus (Qt::FocusReason reason) |
|
void | setFocusPolicy (Qt::FocusPolicy policy) |
|
void | setFocusProxy (QWidget *widget) |
|
void | setFont (const QFont &font) |
|
void | setForegroundRole (QPalette::ColorRole role) |
|
void | setGeometry (const QRect &rect) |
|
void | setGeometry (int x, int y, int w, int h) |
|
void | setGraphicsEffect (QGraphicsEffect *effect) |
|
void | setInputMethodHints (Qt::InputMethodHints hints) |
|
void | setLayout (QLayout *layout) |
|
void | setLayoutDirection (Qt::LayoutDirection direction) |
|
void | setLocale (const QLocale &locale) |
|
void | setMask (const QBitmap &bitmap) |
|
void | setMask (const QRegion ®ion) |
|
void | setMaximumHeight (int maxh) |
|
void | setMaximumSize (const QSize &size) |
|
void | setMaximumSize (int maxw, int maxh) |
|
void | setMaximumWidth (int maxw) |
|
void | setMinimumHeight (int minh) |
|
void | setMinimumSize (const QSize &size) |
|
void | setMinimumSize (int minw, int minh) |
|
void | setMinimumWidth (int minw) |
|
void | setMouseTracking (bool enable) |
|
void | setPalette (const QPalette &palette) |
|
void | setParent (QWidget *parent) |
|
void | setParent (QWidget *parent, Qt::WindowFlags flags) |
|
void | setShortcutAutoRepeat (int id, bool enable=true) |
|
void | setShortcutEnabled (int id, bool enable=true) |
|
void | setSizeIncrement (const QSize &size) |
|
void | setSizeIncrement (int w, int h) |
|
void | setSizePolicy (QSizePolicy policy) |
|
void | setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical) |
|
void | setStatusTip (const QString &data) |
|
void | setStyle (QStyle *style) |
|
void | setToolTip (const QString &data) |
|
void | setToolTipDuration (int msec) |
|
void | setUpdatesEnabled (bool enable) |
|
void | setWhatsThis (const QString &str) |
|
void | setWindowFilePath (const QString &filePath) |
|
void | setWindowFlags (Qt::WindowFlags flags) |
|
void | setWindowIcon (const QIcon &icon) |
|
void | setWindowModality (Qt::WindowModality windowModality) |
|
void | setWindowOpacity (qreal level) |
|
void | setWindowRole (const QString &role) |
|
void | setWindowState (Qt::WindowStates windowState) |
|
QSize | size () const |
|
QSize | sizeIncrement () const |
|
QSizePolicy | sizePolicy () const |
|
void | stackUnder (QWidget *widget) |
|
QString | statusTip () const |
|
QStyle * | style () const |
|
QString | styleSheet () const |
|
bool | testAttribute (Qt::WidgetAttribute attribute) const |
|
QString | toolTip () const |
|
int | toolTipDuration () const |
|
QWidget * | topLevelWidget () const |
|
bool | underMouse () const |
|
void | ungrabGesture (Qt::GestureType gestureType) |
|
void | unsetCursor () |
|
void | unsetLayoutDirection () |
|
void | unsetLocale () |
|
void | update (const QRect &rect) |
|
void | update (const QRegion ®ion) |
|
void | update (int x, int y, int w, int h) |
|
void | updateGeometry () |
|
bool | updatesEnabled () const |
|
QRegion | visibleRegion () const |
|
QString | whatsThis () const |
|
int | width () const |
|
QWidget * | window () const |
|
QString | windowFilePath () const |
|
Qt::WindowFlags | windowFlags () const |
|
QWindow * | windowHandle () const |
|
QIcon | windowIcon () const |
|
Qt::WindowModality | windowModality () const |
|
qreal | windowOpacity () const |
|
QString | windowRole () const |
|
Qt::WindowStates | windowState () const |
|
QString | windowTitle () const |
|
Qt::WindowType | windowType () const |
|
WId | winId () const |
|
int | x () const |
|
int | y () const |
|
| QObject (QObject *parent=nullptr) |
|
| ~QObject () |
|
bool | blockSignals (bool block) |
|
const QList< QObject * > & | children () const |
|
bool | connect (const QObject *sender, const QString &signalMethod, const QString &location, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
bool | connect (const QObject *sender, const QString &signalMethod, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
bool | disconnect (const QObject *receiver, const QString &slotMethod=QString ()) const |
|
bool | disconnect (const QString &signalMethod, const QString &location, const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const |
|
bool | disconnect (const QString &signalMethod=QString (), const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const |
|
void | dumpObjectInfo () |
|
void | dumpObjectTree () |
|
QList< QString > | dynamicPropertyNames () const |
|
virtual bool | event (QEvent *event) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
template<typename T > |
T | findChild (const QString &childName=QString ()) const |
|
template<class T > |
QList< T > | findChildren (const QRegularExpression ®Exp, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
template<class T > |
QList< T > | findChildren (const QString &childName=QString (), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
bool | inherits (const QString &className) const |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isWidgetType () const |
|
bool | isWindowType () const |
|
void | killTimer (int id) |
|
const QMetaObject * | metaObject () const |
|
void | moveToThread (QThread *targetThread) |
|
QString | objectName () const |
|
QObject * | parent () const |
|
template<class T = QVariant> |
T | property (const QString &name) const |
|
void | removeEventFilter (QObject *obj) |
|
void | setObjectName (const QString &name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const QString &name, const QVariant &value) |
|
bool | signalsBlocked () const |
|
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
|
QThread * | thread () const |
|
virtual | ~QPaintDevice () |
|
int | colorCount () const |
|
int | depth () const |
|
int | devicePixelRatio () const |
|
qreal | devicePixelRatioF () const |
|
int | height () const |
|
int | heightMM () const |
|
int | logicalDpiX () const |
|
int | logicalDpiY () const |
|
bool | paintingActive () const |
|
int | physicalDpiX () const |
|
int | physicalDpiY () const |
|
int | width () const |
|
int | widthMM () const |
|
|
void | currentChanged (const QModelIndex ¤t, const QModelIndex &old) override |
|
bool | event (QEvent *event) override |
|
int | horizontalOffset () const override |
|
QModelIndex | indexAt (const QPoint &p) const override |
|
void | initStyleOption (QStyleOptionHeader *option) const |
|
bool | isIndexHidden (const QModelIndex &index) const override |
|
void | mouseDoubleClickEvent (QMouseEvent *event) override |
|
void | mouseMoveEvent (QMouseEvent *event) override |
|
void | mousePressEvent (QMouseEvent *event) override |
|
void | mouseReleaseEvent (QMouseEvent *event) override |
|
QModelIndex | moveCursor (CursorAction, Qt::KeyboardModifiers) override |
|
void | paintEvent (QPaintEvent *event) override |
|
virtual void | paintSection (QPainter *painter, const QRect &rect, int logicalIndex) const |
|
void | scrollContentsBy (int dx, int dy) override |
|
void | scrollTo (const QModelIndex &index, ScrollHint hint) override |
|
virtual QSize | sectionSizeFromContents (int logicalIndex) const |
|
void | setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags flags) override |
|
int | verticalOffset () const override |
|
bool | viewportEvent (QEvent *event) override |
|
QRect | visualRect (const QModelIndex &index) const override |
|
QRegion | visualRegionForSelection (const QItemSelection &selection) const override |
|
QPoint | dirtyRegionOffset () const |
|
void | dragEnterEvent (QDragEnterEvent *event) override |
|
void | dragLeaveEvent (QDragLeaveEvent *event) override |
|
void | dragMoveEvent (QDragMoveEvent *event) override |
|
void | dropEvent (QDropEvent *event) override |
|
DropIndicatorPosition | dropIndicatorPosition () const |
|
virtual bool | edit (const QModelIndex &index, EditTrigger trigger, QEvent *event) |
|
bool | event (QEvent *event) override |
|
void | executeDelayedItemsLayout () |
|
void | focusInEvent (QFocusEvent *event) override |
|
bool | focusNextPrevChild (bool next) override |
|
void | focusOutEvent (QFocusEvent *event) override |
|
int | horizontalStepsPerItem () const |
|
void | inputMethodEvent (QInputMethodEvent *event) override |
|
void | keyPressEvent (QKeyEvent *event) override |
|
void | resizeEvent (QResizeEvent *event) override |
|
void | scheduleDelayedItemsLayout () |
|
void | scrollDirtyRegion (int dx, int dy) |
|
virtual QModelIndexList | selectedIndexes () const |
|
virtual QItemSelectionModel::SelectionFlags | selectionCommand (const QModelIndex &index, const QEvent *event=nullptr) const |
|
void | setDirtyRegion (const QRegion ®ion) |
|
void | setHorizontalStepsPerItem (int steps) |
|
void | setState (State state) |
|
void | setVerticalStepsPerItem (int steps) |
|
virtual void | startDrag (Qt::DropActions supportedActions) |
|
State | state () const |
|
void | timerEvent (QTimerEvent *event) override |
|
int | verticalStepsPerItem () const |
|
virtual QStyleOptionViewItem | viewOptions () const |
|
QSize | viewportSizeHint () const override |
|
void | contextMenuEvent (QContextMenuEvent *event) override |
|
void | dragEnterEvent (QDragEnterEvent *event) override |
|
void | dragLeaveEvent (QDragLeaveEvent *event) override |
|
void | dragMoveEvent (QDragMoveEvent *event) override |
|
void | dropEvent (QDropEvent *event) override |
|
bool | event (QEvent *event) override |
|
void | keyPressEvent (QKeyEvent *event) override |
|
void | mouseDoubleClickEvent (QMouseEvent *event) override |
|
void | mouseMoveEvent (QMouseEvent *event) override |
|
void | mousePressEvent (QMouseEvent *event) override |
|
void | mouseReleaseEvent (QMouseEvent *event) override |
|
void | paintEvent (QPaintEvent *event) override |
|
void | resizeEvent (QResizeEvent *event) override |
|
void | setViewportMargins (const QMargins &margins) |
|
void | setViewportMargins (int left, int top, int right, int bottom) |
|
QMargins | viewportMargins () const |
|
void | wheelEvent (QWheelEvent *event) override |
|
void | changeEvent (QEvent *event) override |
|
void | drawFrame (QPainter *painter) |
|
bool | event (QEvent *event) override |
|
void | initStyleOption (QStyleOptionFrame *option) const |
|
void | paintEvent (QPaintEvent *event) override |
|
virtual void | actionEvent (QActionEvent *event) |
|
virtual void | closeEvent (QCloseEvent *event) |
|
void | create (WId window=0, bool initializeWindow=true, bool destroyOldWindow=true) |
|
void | destroy (bool destroyWindow=true, bool destroySubWindows=true) |
|
virtual void | enterEvent (QEvent *event) |
|
bool | event (QEvent *event) override |
|
bool | focusNextChild () |
|
bool | focusPreviousChild () |
|
virtual void | hideEvent (QHideEvent *event) |
|
void | initPainter (QPainter *painter) const override |
|
virtual void | keyReleaseEvent (QKeyEvent *event) |
|
virtual void | leaveEvent (QEvent *event) |
|
int | metric (PaintDeviceMetric metric) const override |
|
virtual void | moveEvent (QMoveEvent *event) |
|
virtual bool | nativeEvent (const QByteArray &eventType, void *message, long *result) |
|
virtual void | showEvent (QShowEvent *event) |
|
virtual void | tabletEvent (QTabletEvent *event) |
|
virtual void | childEvent (QChildEvent *event) |
|
virtual void | connectNotify (const QMetaMethod &signalMethod) const |
|
virtual void | customEvent (QEvent *event) |
|
virtual void | disconnectNotify (const QMetaMethod &signalMethod) const |
|
bool | isSignalConnected (const QMetaMethod &signalMethod) const |
|
int | receivers (const QString &signal) const |
|
QObject * | sender () const |
|
int | senderSignalIndex () const |
|
virtual void | timerEvent (QTimerEvent *event) |
|
| QPaintDevice () |
|
|
using | EditTriggers = QFlags< EditTrigger > |
|
using | RenderFlags = QFlags< RenderFlag > |
|
static QWidget * | createWindowContainer (QWindow *window, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::EmptyFlag) |
|
static QWidget * | find (WId id) |
|
static QWidget * | keyboardGrabber () |
|
static QWidget * | mouseGrabber () |
|
static void | setTabOrder (QWidget *firstWidget, QWidget *secondWidget) |
|
static bool | connect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
static bool | connect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection, const QString &location=QString ()) |
|
static bool | connect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn > |
static bool | connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...), Qt::ConnectionType type=Qt::AutoConnection) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T > |
static bool | connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotLambda, Qt::ConnectionType type=Qt::AutoConnection) |
|
static bool | disconnect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod) |
|
static bool | disconnect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod) |
|
static bool | disconnect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod) |
|
static bool | disconnect (const QObject *sender, std::nullptr_t, const QObject *receiver, std::nullptr_t) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn > |
static bool | disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...)) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver > |
static bool | disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, std::nullptr_t slotMethod=nullptr) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T > |
static bool | disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotMethod) |
|
static QMetaObject & | staticMetaObject () |
|
static QString | tr (const char *text, const char *comment=nullptr, std::optional< int > numArg=std::optional< int >()) |
|
enum | CursorAction |
|
enum | DropIndicatorPosition |
|
enum | State |
|
| QWidgetList |
|
| WId |
|
T | qobject_cast (QObject *object) |
|
| QObjectList |
|
The QHeaderView class provides headers for item views. A header can appear vertically or horizontally. This class is used to display the headers in item view classes like QTableView and QTreeView.
The header gets the data for each section from the model using the QAbstractItemModel::headerData() function. You can set the data by using QAbstractItemModel::setHeaderData(). Each header has an orientation() and a number of sections, given by the count() function. A section refers to a part of the header, either a row or a column, depending on the orientation.
Sections can be moved and resized using moveSection() and resizeSection(). They can also be hidden and shown with hideSection() and showSection(). Each section of a header is described by a section ID, specified by its section, and can be located at a particular visualIndex() in the header. A section can have a sort indicator set with setSortIndicator(), this indicates whether the items in the associated item view will be sorted in the order given by the section.
For a horizontal header the section is equivalent to a column in the model, and for a vertical header the section is equivalent to a row in the model.
Moving Header Sections
A header can be fixed in place or made movable with setSectionsMovable(). It can be made clickable with setSectionsClickable() and has resizing behavior in accordance with setSectionResizeMode(). A header will emit sectionMoved() if the user moves a section, sectionResized() if the user resizes a section, and sectionClicked() as well as sectionHandleDoubleClicked() in response to mouse clicks. A header will also emit sectionCountChanged().
You can identify a section using the logicalIndex() and logicalIndexAt() functions, or by its index position, using the visualIndex() and visualIndexAt() functions. The visual index will change if a section is moved, but the logical index will not change.
Double-clicking on a header to resize a section only applies for visible rows.
Appearance
QTableWidget and QTableView create default headers. If you want the headers to be visible you can use setVisible(). Each header renders the data for each section itself and does not rely on a delegate. As a result, calling a header's setItemDelegate() method will have no effect.
Not all item data roles will have an effect on a QHeaderView. If you need to draw other roles, you can subclass QHeaderView and reimplement paintEvent(). QHeaderView respects the following item data roles: Qt::TextAlignmentRole, Qt::DisplayRole, Qt::FontRole, Qt::DecorationRole, Qt::ForegroundRole, and Qt::BackgroundRole.
- See also
- QListView, QTableView, QTreeView, Model/View Architecture