I'm making a table with QTableWidgetItem
,
the problem that occurs to me is in VertialHeader
I need the text to be centered and to define a different text color to some items; for example the item ( Gastos
must be red).
Within the stylesheet
try the following to modify the alignment of the text but it did not work:
QHeaderView::section:vertical{ qproperty-defaultAlignment: AlignHCenter; }
As for the text color of itemVerticalHeader
, I could not solve anything.
I hope you can help me I leave a screenshot of the table: