QListWidgetItem Class Reference
|
Constant | Value | Description |
---|---|---|
QListWidgetItem::Type | 0 | The default type for list widget items. |
QListWidgetItem::UserType | 1000 | The minimum value for custom types. Values below UserType are reserved by Qt. |
You can define new user types in QListWidgetItem subclasses to ensure that custom items are treated specially.
See also type().
Constructs an empty list widget item of the specified type with the given parent. If the parent is not specified, the item will need to be inserted into a list widget with QListWidget::insertItem().
See also type().
Constructs an empty list widget item of the specified type with the given text and parent. If the parent is not specified, the item will need to be inserted into a list widget with QListWidget::insertItem().
See also type().
Constructs an empty list widget item of the specified type with the given icon, text and parent. If the parent is not specified, the item will need to be inserted into a list widget with QListWidget::insertItem().
See also type().
Constructs a copy of other. Note that type() and listWidget() are not copied.
This function is useful when reimplementing clone().
This function was introduced in Qt 4.1.
Destroys the list item.
Returns the brush used to display the list item's background.
This function was introduced in Qt 4.2.
See also setBackground() and foreground().
Returns the checked state of the list item (see Qt::CheckState).
See also setCheckState() and flags().
Creates an exact copy of the item.
This function returns the item's data for a given role (see Qt::ItemDataRole). Reimplement this function if you need extra roles or special behavior for certain roles.
See also setData().
Returns the item flags for this item (see Qt::ItemFlags).
See also setFlags().
Returns the font used to display this list item's text.
See also setFont().
Returns the brush used to display the list item's foreground (e.g. text).
This function was introduced in Qt 4.2.
See also setForeground() and background().
Returns the list item's icon.
See also setIcon() and iconSize.
Returns true if the item is hidden, otherwise returns false.
This function was introduced in Qt 4.2.
See also setHidden().
Returns true if the item is selected, otherwise returns false.
This function was introduced in Qt 4.2.
See also setSelected().
Returns the list widget that contains the item.
Reads the item from stream in.
See also write().
Sets the background brush of the list item to the given brush.
This function was introduced in Qt 4.2.
See also background() and setForeground().
Sets the check state of the list item to state.
See also checkState().
This function sets the data for a given role to the given value (see Qt::ItemDataRole). Reimplement this function if you need extra roles or special behavior for certain roles.
See also Qt::ItemDataRole and data().
Sets the item flags for the list item to flags (see Qt::ItemFlags).
See also flags().
Sets the font used when painting the item to the given font.
See also font().
Sets the foreground brush of the list item to the given brush.
This function was introduced in Qt 4.2.
See also foreground() and setBackground().
Hides the item if hide is true, otherwise shows the item.
This function was introduced in Qt 4.2.
See also isHidden().
Sets the icon for the list item to the given icon.
See also icon(), text(), and iconSize.
Sets the selected state of the item to select.
This function was introduced in Qt 4.2.
See also isSelected().
Sets the size hint for the list item to be size. If no size hint is set, the item delegate will compute the size hint based on the item data.
This function was introduced in Qt 4.1.
See also sizeHint().
Sets the status tip for the list item to the text specified by statusTip. QListWidget mouse tracking needs to be enabled for this feature to work.
See also statusTip(), setToolTip(), and setWhatsThis().
Sets the text for the list widget item's to the given text.
See also text().
Sets the list item's text alignment to alignment (see Qt::AlignmentFlag).
See also textAlignment().
Sets the tooltip for the list item to the text specified by toolTip.
See also toolTip(), setStatusTip(), and setWhatsThis().
Sets the "What's This?" help for the list item to the text specified by whatsThis.
See also whatsThis(), setStatusTip(), and setToolTip().
Returns the size hint set for the list item.
This function was introduced in Qt 4.1.
See also setSizeHint().
Returns the list item's status tip.
See also setStatusTip().
Returns the list item's text.
See also setText().
Returns the text alignment for the list item (see Qt::AlignmentFlag).
See also setTextAlignment().
Returns the list item's tooltip.
See also setToolTip(), statusTip(), and whatsThis().
Returns the type passed to the QListWidgetItem constructor.
Returns the list item's "What's This?" help text.
See also setWhatsThis(), statusTip(), and toolTip().
Writes the item to stream out.
See also read().
Returns true if this item's text is less then other item's text; otherwise returns false.
Assigns other's data and flags to this item. Note that type() and listWidget() are not copied.
This function is useful when reimplementing clone().
This is an overloaded member function, provided for convenience.
Writes the list widget item item to stream out.
This operator uses QListWidgetItem::write().
See also Format of the QDataStream Operators.
This is an overloaded member function, provided for convenience.
Reads a list widget item from stream in into item.
This operator uses QListWidgetItem::read().
See also Format of the QDataStream Operators.
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 qtextended4.4 | |
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