The horizontal text alignment problem is due to:
case(Qt::TextAlignmentRole):
return Qt::AlignLeft; // Not aligned
if I change Qt::AlignLeft to Qt::AlignCenter or nothing, it's aligned
case(Qt::TextAlignmentRole):
return Qt::AlignCenter; // Aligned
It's not aligned with Qt::AlignRight too. Why AlignLeft and AlignRight push the text up?
Still crashing when sorting columns