PythonQt.QtGui.QTableWidgetItem · declarations 001
Back to PythonQt.QtGui.QTableWidgetItem
background
background() -> Any
X.background() -> PythonQt.QtGui.QBrush
Supplemental documentation: Qt 5 reference:
QBrush QTableWidgetItem::background() const
Returns the brush used to render the item's background.
This function was introduced in Qt 4.2.
See also setBackground() and foreground().
Upstream PySide2 reference signatures (binding differences may apply):
background(self) -> PySide2.QtGui.QBrush
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#background
checkState
checkState() -> Any
X.checkState()
Supplemental documentation: Qt 5 reference:
Qt::CheckState QTableWidgetItem::checkState() const
Returns the checked state of the table item.
See also setCheckState() and flags().
Upstream PySide2 reference signatures (binding differences may apply):
checkState(self) -> PySide2.QtCore.Qt.CheckState
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#checkState
clone
clone() -> Any
X.clone() -> PythonQt.QtGui.QTableWidgetItem
Supplemental documentation: Qt 5 reference:
[virtual] QTableWidgetItem *QTableWidgetItem::clone() const
Creates a copy of the item.
Upstream PySide2 reference signatures (binding differences may apply):
clone(self) -> PySide2.QtWidgets.QTableWidgetItem
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#clone
column
column() -> int
X.column() -> int
Supplemental documentation: Qt 5 reference:
int QTableWidgetItem::column() const
Returns the column of the item in the table. If the item is not in a table, this function will return -1.
This function was introduced in Qt 4.2.
See also row().
Upstream PySide2 reference signatures (binding differences may apply):
column(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#column
data
data(role: int) -> Any
X.data(role) -> object
Supplemental documentation: Qt 5 reference:
[virtual] QVariant QTableWidgetItem::data(int role) const
Returns the item's data for the given role.
See also setData().
Upstream PySide2 reference signatures (binding differences may apply):
data(self, role: int) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#data
flags
flags() -> Any
X.flags()
Supplemental documentation: Qt 5 reference:
Qt::ItemFlags QTableWidgetItem::flags() const
Returns the flags used to describe the item. These determine whether the item can be checked, edited, and selected.
See also setFlags().
Upstream PySide2 reference signatures (binding differences may apply):
flags(self) -> PySide2.QtCore.Qt.ItemFlags
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#flags
font
font() -> Any
X.font() -> PythonQt.QtGui.QFont
Supplemental documentation: Qt 5 reference:
QFont QTableWidgetItem::font() const
Returns the font used to render the item's text.
See also setFont().
Upstream PySide2 reference signatures (binding differences may apply):
font(self) -> PySide2.QtGui.QFont
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#font
foreground
foreground() -> Any
X.foreground() -> PythonQt.QtGui.QBrush
Supplemental documentation: Qt 5 reference:
QBrush QTableWidgetItem::foreground() const
Returns the brush used to render the item's foreground (e.g. text).
This function was introduced in Qt 4.2.
See also setForeground() and background().
Upstream PySide2 reference signatures (binding differences may apply):
foreground(self) -> PySide2.QtGui.QBrush
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#foreground
icon
icon() -> Any
X.icon() -> PythonQt.QtGui.QIcon
Supplemental documentation: Qt 5 reference:
QIcon QTableWidgetItem::icon() const
Returns the item's icon.
See also setIcon() and iconSize.
Upstream PySide2 reference signatures (binding differences may apply):
icon(self) -> PySide2.QtGui.QIcon
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#icon
isSelected
isSelected() -> bool
X.isSelected() -> bool
Supplemental documentation: Qt 5 reference:
bool QTableWidgetItem::isSelected() const
Returns true if the item is selected, otherwise returns false.
This function was introduced in Qt 4.2.
See also setSelected().
Upstream PySide2 reference signatures (binding differences may apply):
isSelected(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#isSelected
read
read(*args: Any, **kwargs: Any) -> None
X.read(in)
Supplemental documentation: Qt 5 reference:
[virtual] void QTableWidgetItem::read(QDataStream \&in)
Reads the item from stream in.
See also write().
Upstream PySide2 reference signatures (binding differences may apply):
read(self, in_: PySide2.QtCore.QDataStream) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#read
row
row() -> int
X.row() -> int
Supplemental documentation: Qt 5 reference:
int QTableWidgetItem::row() const
Returns the row of the item in the table. If the item is not in a table, this function will return -1.
This function was introduced in Qt 4.2.
See also column().
Upstream PySide2 reference signatures (binding differences may apply):
row(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#row
setBackground
setBackground(brush: Any) -> None
X.setBackground(brush)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setBackground(const QBrush \&brush)
Sets the item's background brush to the specified brush. Setting a default-constructed brush will let the view use the default color from the style.
This function was introduced in Qt 4.2.
See also background() and setForeground().
Upstream PySide2 reference signatures (binding differences may apply):
setBackground(self, brush: PySide2.QtGui.QBrush) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setBackground
setCheckState
setCheckState(state: Any) -> None
X.setCheckState(state)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setCheckState(Qt::CheckState state)
Sets the check state of the table item to be state.
See also checkState().
Upstream PySide2 reference signatures (binding differences may apply):
setCheckState(self, state: PySide2.QtCore.Qt.CheckState) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setCheckState
setData
setData(role: int, value: Any) -> None
X.setData(role, value)
Supplemental documentation: Qt 5 reference:
[virtual] void QTableWidgetItem::setData(int role, const QVariant \&value)
Sets the item's data for the given role to the specified value.
Note: The default implementation treats Qt::EditRole and Qt::DisplayRole as referring to the same data.
See also Qt::ItemDataRole and data().
Upstream PySide2 reference signatures (binding differences may apply):
setData(self, role: int, value: typing.Any) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setData
setFlags
setFlags(arg0: flags) -> None
X.setFlags(flags)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setFlags(Qt::ItemFlags flags)
Sets the flags for the item to the given flags. These determine whether the item can be selected or modified.
See also flags().
Upstream PySide2 reference signatures (binding differences may apply):
setFlags(self, flags: PySide2.QtCore.Qt.ItemFlags) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setFlags
setFont
setFont(font: Any) -> None
X.setFont(font)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setFont(const QFont \&font)
Sets the font used to display the item's text to the given font.
See also font(), setText(), and setForeground().
Upstream PySide2 reference signatures (binding differences may apply):
setFont(self, font: PySide2.QtGui.QFont) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setFont
setForeground
setForeground(brush: Any) -> None
X.setForeground(brush)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setForeground(const QBrush \&brush)
Sets the item's foreground brush to the specified brush. Setting a default-constructed brush will let the view use the default color from the style.
This function was introduced in Qt 4.2.
See also foreground() and setBackground().
Upstream PySide2 reference signatures (binding differences may apply):
setForeground(self, brush: PySide2.QtGui.QBrush) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setForeground
setIcon
setIcon(icon: Any) -> None
X.setIcon(icon)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setIcon(const QIcon \&icon)
Sets the item's icon to the icon specified.
See also icon(), setText(), and iconSize.
Upstream PySide2 reference signatures (binding differences may apply):
setIcon(self, icon: PySide2.QtGui.QIcon) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setIcon
setSelected
setSelected(select: bool) -> None
X.setSelected(select)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setSelected(bool select)
Sets the selected state of the item to select.
This function was introduced in Qt 4.2.
See also isSelected().
Upstream PySide2 reference signatures (binding differences may apply):
setSelected(self, select: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setSelected
setSizeHint
setSizeHint(size: Any) -> None
X.setSizeHint(size)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setSizeHint(const QSize \&size)
Sets the size hint for the table item to be size. If no size hint is set or size is invalid, the item delegate will compute the size hint based on the item data.
This function was introduced in Qt 4.1.
See also sizeHint().
Upstream PySide2 reference signatures (binding differences may apply):
setSizeHint(self, size: PySide2.QtCore.QSize) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setSizeHint
setStatusTip
setStatusTip(statusTip: str) -> None
X.setStatusTip(statusTip)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setStatusTip(const QString \&statusTip)
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().
Upstream PySide2 reference signatures (binding differences may apply):
setStatusTip(self, statusTip: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setStatusTip
setText
setText(text: str) -> None
X.setText(text)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setText(const QString \&text)
Sets the item's text to the text specified.
See also text(), setFont(), and setForeground().
Upstream PySide2 reference signatures (binding differences may apply):
setText(self, text: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setText
setTextAlignment
setTextAlignment(alignment: int) -> None
X.setTextAlignment(alignment)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setTextAlignment(int alignment)
Sets the text alignment for the item's text to the alignment specified.
See also textAlignment() and Qt::Alignment.
Upstream PySide2 reference signatures (binding differences may apply):
setTextAlignment(self, alignment: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setTextAlignment
setToolTip
setToolTip(toolTip: str) -> None
X.setToolTip(toolTip)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setToolTip(const QString \&toolTip)
Sets the item's tooltip to the string specified by toolTip.
See also toolTip(), setStatusTip(), and setWhatsThis().
Upstream PySide2 reference signatures (binding differences may apply):
setToolTip(self, toolTip: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setToolTip
setWhatsThis
setWhatsThis(whatsThis: str) -> None
X.setWhatsThis(whatsThis)
Supplemental documentation: Qt 5 reference:
void QTableWidgetItem::setWhatsThis(const QString \&whatsThis)
Sets the item's "What's This?" help to the string specified by whatsThis.
See also whatsThis(), setStatusTip(), and setToolTip().
Upstream PySide2 reference signatures (binding differences may apply):
setWhatsThis(self, whatsThis: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#setWhatsThis
sizeHint
sizeHint() -> Any
X.sizeHint() -> PythonQt.QtCore.QSize
Supplemental documentation: Qt 5 reference:
QSize QTableWidgetItem::sizeHint() const
Returns the size hint set for the table item.
This function was introduced in Qt 4.1.
See also setSizeHint().
Upstream PySide2 reference signatures (binding differences may apply):
sizeHint(self) -> PySide2.QtCore.QSize
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#sizeHint
statusTip
statusTip() -> str
X.statusTip() -> str
Supplemental documentation: Qt 5 reference:
QString QTableWidgetItem::statusTip() const
Returns the item's status tip.
See also setStatusTip().
Upstream PySide2 reference signatures (binding differences may apply):
statusTip(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#statusTip
tableWidget
tableWidget() -> Any
X.tableWidget() -> PythonQt.QtGui.QTableWidget
Supplemental documentation: Qt 5 reference:
QTableWidget *QTableWidgetItem::tableWidget() const
Returns the table widget that contains the item.
Upstream PySide2 reference signatures (binding differences may apply):
tableWidget(self) -> PySide2.QtWidgets.QTableWidget
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#tableWidget
text
text() -> str
X.text() -> str
Supplemental documentation: Qt 5 reference:
QString QTableWidgetItem::text() const
Returns the item's text.
See also setText().
Upstream PySide2 reference signatures (binding differences may apply):
text(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#text
textAlignment
textAlignment() -> int
X.textAlignment() -> int
Supplemental documentation: Qt 5 reference:
int QTableWidgetItem::textAlignment() const
Returns the text alignment for the item's text.
See also setTextAlignment() and Qt::Alignment.
Upstream PySide2 reference signatures (binding differences may apply):
textAlignment(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#textAlignment
toolTip
toolTip() -> str
X.toolTip() -> str
Supplemental documentation: Qt 5 reference:
QString QTableWidgetItem::toolTip() const
Returns the item's tooltip.
See also setToolTip().
Upstream PySide2 reference signatures (binding differences may apply):
toolTip(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#toolTip
type
type() -> int
X.type() -> int
Supplemental documentation: Qt 5 reference:
int QTableWidgetItem::type() const
Returns the type passed to the QTableWidgetItem constructor.
Upstream PySide2 reference signatures (binding differences may apply):
type(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#type
whatsThis
whatsThis() -> str
X.whatsThis() -> str
Supplemental documentation: Qt 5 reference:
QString QTableWidgetItem::whatsThis() const
Returns the item's "What's This?" help.
See also setWhatsThis().
Upstream PySide2 reference signatures (binding differences may apply):
whatsThis(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#whatsThis
write
write(out: Any) -> None
X.write(out)
Supplemental documentation: Qt 5 reference:
[virtual] void QTableWidgetItem::write(QDataStream \&out) const
Writes the item to stream out.
See also read().
Upstream PySide2 reference signatures (binding differences may apply):
write(self, out: PySide2.QtCore.QDataStream) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidgetitem.html#write