Is there a way to edit the horizontal header items in a QTableWidget by double-clicking the corresponding header? I have tried to connect the signal itemDoubleClicked to the header item, that I have retrieved using the horizontalHeaderItem method, and then use the editItem method for enabling editing of the header. I have also set the flags of the header items in order to be editable, but it seems that the header is not emitting any signal. Any suggestions?

Thanks in advance.