Align text to center of cells in a QTableWidget November 9, 2020 item = QTableWidgetItem(scraped_age) # create the item item.setTextAlignment(Qt.AlignHCenter) # change the alignment References https://stackoverflow.com/questions/47971275/how-to-align-the-text-to-center-of-cells-in-a-qtablewidget Related