Yes, it should be possible. You'd need to subclass the table, use QWidget::setContentsMargins to make a margin on the right of the widget instead of the left one and reimplement resizeEvent to adjust the geometry of the header.