QHeaderView Class Reference |
Constant | Value | Description |
---|---|---|
QHeaderView::Interactive | 0 | Don't automatically change the size (let the user do it manually). |
QHeaderView::Stretch | 1 | Fill all the available visible space. |
QHeaderView::Custom | 2 | Don't automatically change the size here, leave it to some other object. |
This property holds whether the sections containing selected items are highlighted.
Access functions:
This property holds whether the sort indicator is shown.
Access functions:
This property holds whether the last section in the header takes up all the available space.
Access functions:
Creates a new generic header with the given orientation and parent.
Destroys the header.
Returns the number of sections in the header.
Updates the changed header sections with the given orientation, from logicalFirst to logicalLast inclusive.
Hides the section specified by logicalIndex.
See also showSection() and isSectionHidden().
Returns the horizontal offset of the header. This is 0 for vertical headers.
Reimplemented from QAbstractItemView.
See also offset().
Returns true if the header is clickable; otherwise returns false. A clickable header could be set up to allow the user to change the representation of the data in the view related to the header.
See also setClickable().
Returns true if the header can be moved by the user; otherwise returns false.
See also setMovable().
Returns true if the section specified by logicalIndex is explicitly hidden from the user; otherwise returns false.
See also setSectionHidden().
Returns the length along the orientation of the header.
See also sizeHint().
Returns the logicalIndex for the section at the given visualIndex position, or -1 otherwise.
See also visualIndex() and sectionPosition().
Returns the section that covers the given position in the viewport.
See also visualIndexAt().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the logical index of the section at the given coordinate. If the header is horizontal x will be used, otherwise y will be used to find the logical index.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the logical index of the section at the position given in pos. If the header is horizontal the x-coordinate will be used to find the logical index; otherwise the y-coordinate will be used.
Moves the section at visual index from to occupy visual index to.
See also sectionsMoved().
Returns the offset of the header: this is the header's left-most (or top-most for vertical headers) visible pixel.
See also setOffset().
Returns the orientation of the header.
See also Qt::Orientation.
Paints the section specified by the given logicalIndex, using the given painter and rect.
You normally would not need to use this function.
Returns the resize mode that applies to the section specified by the given logicalIndex.
See also setResizeMode().
Resizes the given logicalIndex to the given size.
This signal is emitted when a section is clicked. The section's logical index is specified by logicalIndex.
This signal is emitted when the number of sections changes; i.e. when sections are added or deleted. The original count is specified by oldCount, and the new count by newCount.
This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.
This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.
This signal is emitted when a section is moved. The section's logical index is specified by logicalIndex, the old index by oldVisualIndex, and the new index position by newVisualIndex.
Returns the section position of the given logicalIndex.
See also sectionViewportPosition().
This signal is emitted when a section is pressed. The section's logical index is specified by logicalIndex.
This signal is emitted when a section is resized. The section's logical number is specified by logicalIndex, the old size by oldSize, and the new size by newSize.
Returns the width (or height for vertical headers) of the given logicalIndex.
Returns the size of the contents of the section specified by the give logicalIndex.
Returns a suitable size hint for the section specified by logicalIndex.
See also sizeHint().
Returns the section viewport position of the given logicalIndex. If the section is hidden the function returns -1.
See also sectionPosition().
This slot is called when sections are removed from the parent, logicalFirst and logicalLast signify where the sections are removed from. (logicalFirst and logicalLast will be the same if just one section is removed.)
This slot is called when sections are inserted into the parent, logicalFirst and logicalLast indexes signify where the new sections are inserted.
logicalFirst and logicalLast will be the same if just one section is inserted.
Returns true if sections in the header has been moved; otherwise returns false;
See also moveSection().
If clickable is true, the header will respond to single clicks.
See also isClickable().
If movable is true, the header may be moved by the user; otherwise it is fixed in place.
See also isMovable().
Sets the header's offset to offset.
See also offset().
Sets the constraints on how the header can be resized to those described by the given mode.
See also resizeMode().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Sets the constraints on how the section specified by logicalIndex in the header can be resized to those described by the given mode.
If hide is true the section specified by logicalIndex is hidden, otherwise the section is shown.
See also isSectionHidden().
Sets the sort indicator for the section specified by the given logicalIndex in the direction specified by order, and removes the sort indicator from any other section that was showing it.
See also sortIndicatorSection() and sortIndicatorOrder().
Shows the section specified by logicalIndex.
See also hideSection() and isSectionHidden().
Returns a suitable size hint for this header.
Reimplemented from QWidget.
See also sectionSizeHint().
Returns the order for the sort indicator. If no section has a sort indicator the return value of this function is undefined.
See also setSortIndicator() and sortIndicatorSection().
Returns the logical index of the section that has a sort indicator. By default this is section 0.
See also setSortIndicator(), sortIndicatorOrder(), and setSortIndicatorShown().
Returns the vertical offset of the header. This is 0 for horizontal headers.
Reimplemented from QAbstractItemView.
See also offset().
Returns the visual index position of the section specified by the given logicalIndex, or -1 otherwise. Hidden sections still have valid visual indexes.
See also logicalIndex().
Returns the visual index of the section that covers the given position in the viewport.
See also logicalIndexAt().
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.0 | |
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