QTableWidgetItem Class Reference
|
Константа | Значение | Описание |
---|---|---|
QTableWidgetItem::Type | 0 | The default type for table widget items. |
QTableWidgetItem::UserType | 1000 | The minimum value for custom types. Values below UserType are reserved by Qt. |
You can define new user types in QTableWidgetItem subclasses to ensure that custom items are treated specially.
See also type().
Constructs a table item of the specified type that does not belong to any table.
See also type().
Constructs a table item with the given text.
See also type().
Constructs a table item with the given icon and text.
See also type().
Создаёт копию other. Note that type() and tableWidget() are not copied.
This function is useful when reimplementing clone().
Эта функция была введена в Qt 4.1.
Destroys the table item.
Returns the brush used to render the item's background.
Эта функция была введена в Qt 4.2.
See also setBackground() and foreground().
Returns the checked state of the table item.
See also setCheckState() and flags().
Creates a copy of the item.
Returns the column of the item in the table. If the item is not in a table, this function will return -1.
Эта функция была введена в Qt 4.2.
See also row().
Returns the item's data for the given role.
Смотрите также setData().
Returns the flags used to describe the item. These determine whether the item can be checked, edited, and selected.
See also setFlags().
Returns the font used to render the item's text.
Смотрите также setFont().
Returns the brush used to render the item's foreground (e.g. text).
Эта функция была введена в Qt 4.2.
See also setForeground() and background().
Returns the item's icon.
See also setIcon() and iconSize.
Returns true if the item is selected, otherwise returns false.
Эта функция была введена в Qt 4.2.
See also setSelected().
Reads the item from stream in.
See also write().
Returns the row of the item in the table. If the item is not in a table, this function will return -1.
Эта функция была введена в Qt 4.2.
See also column().
Sets the item's background brush to the specified brush.
Эта функция была введена в Qt 4.2.
See also background() and setForeground().
Sets the check state of the table item to be state.
See also checkState().
Sets the item's data for the given role to the specified value.
See also Qt::ItemDataRole and data().
Sets the flags for the item to the given flags. These determine whether the item can be selected or modified.
See also flags().
Sets the font used to display the item's text to the given font.
See also font(), setText(), and setForeground().
Sets the item's foreground brush to the specified brush.
Эта функция была введена в Qt 4.2.
See also foreground() and setBackground().
Sets the item's icon to the icon specified.
See also icon(), setText(), and iconSize.
Sets the selected state of the item to select.
Эта функция была введена в Qt 4.2.
See also isSelected().
Sets the size hint for the table item to be size. If no size hint is set, the item delegate will compute the size hint based on the item data.
Эта функция была введена в Qt 4.1.
Смотрите также sizeHint().
Sets the status tip for the table item to the text specified by statusTip. QTableWidget mouse tracking needs to be enabled for this feature to work.
See also statusTip(), setToolTip(), and setWhatsThis().
Sets the item's text to the text specified.
See also text(), setFont(), and setForeground().
Sets the text alignment for the item's text to the alignment specified.
See also textAlignment() and Qt::Alignment.
Sets the item's tooltip to the string specified by toolTip.
See also toolTip(), setStatusTip(), and setWhatsThis().
Sets the item's "What's This?" help to the string specified by whatsThis.
See also whatsThis(), setStatusTip(), and setToolTip().
Returns the size hint set for the table item.
Эта функция была введена в Qt 4.1.
See also setSizeHint().
Returns the item's status tip.
See also setStatusTip().
Returns the table widget that contains the item.
Возвращает текст элемента.
Смотрите также setText().
Returns the text alignment for the item's text.
See also setTextAlignment() and Qt::Alignment.
Returns the item's tooltip.
See also setToolTip().
Returns the type passed to the QTableWidgetItem constructor.
Returns the item's "What's This?" help.
Смотрите также setWhatsThis().
Writes the item to stream out.
See also read().
Returns true if the item is less than the other item; otherwise returns false.
Assigns other's data and flags to this item. Note that type() and tableWidget() are not copied.
This function is useful when reimplementing clone().
Writes the table widget item item to stream out.
This operator uses QTableWidgetItem::write().
Смотрите также Формат операторов QDataStream.
Reads a table widget item from stream in into item.
This operator uses QTableWidgetItem::read().
Смотрите также Формат операторов QDataStream.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Торговые марки | Qt 4.5.3 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |