QTableWidgetItem *item = nullptr;
item = new QTableWidgetItem(Str);
item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
pTable->setItem(i, 0, item);
QTableWidget设置内容居中
最新推荐文章于 2024-07-18 18:59:33 发布
QTableWidgetItem *item = nullptr;
item = new QTableWidgetItem(Str);
item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
pTable->setItem(i, 0, item);