The reason is that QHeaderView doesn't emit clicked() signal. Use QHeaderView::sectionClicked(int section) instead.