Obsolete Members for QTableWidgetItem

以下成員源於類 QTableWidgetItem 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(棄用) void setTextAlignment (int alignment )

成員函數文檔編製

[deprecated] void QTableWidgetItem:: setTextAlignment ( int alignment )

This function is deprecated. We strongly advise against using it in new code.

Use the overload that takes a Qt::Alignment 自變量。

Sets the text alignment for the item's text to the alignment 指定。

另請參閱 Qt::Alignment .