Removing the "raised" shadow from a QHeaderView
-

I want to remove the shadows of the header so it does not look "raised". Tried these things already but they dont work nor change anything:header->setFrameShadow(QFrame::Plain); header->setFrameShape(QFrame::NoFrame); header->setFrameStyle(0); -
Hi,
You can achieve that using style sheet. See here for a possible way ?
-
Now it looks better but the text is at the top left corner. How do I align this to the center (both vertical and horizontal)?