I use the program from Siemens ( WinCC OA ), which is built on Qt . Directly, it is impossible to work with the Qt library in it, but you can change the display of graphic objects using CSS . How, using only CSS , to determine the alignment of the text in the headings of the table QTableView .
I tried this:
QTableView QHeaderView::section { text-align: center; } And does not work.