QHeaderView is not a full-featured model-view class and doesn't unfortunately use item delegates for anything at all. Check this thread.