i want text align of row and column in QTableWidget
Unsolved
General and Desktop
-
i want text align of row and column in QTableWidget
all text align centor -
For each QTableWidgetItem you create you can specify alingment.
QTableWidgetItem * item = new QTableWidgetItem();
item->setTextAlignment(Qt::AlignLeft)Also you may want to use
void QTableWidget::setItemPrototype(const QTableWidgetItem * item)To set defaults