Quote Originally Posted by ioannis View Post
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.
1, Hide the header horizontalHeaderItem
2, Display horizontalHeaderItem one first line 0
3, make background from line 0 like horizontalHeaderItem grey..
item->setData (Qt::BackgroundColorRole ,QColor("#grey"));

4, insert flag editable item->setFlags ( Qt::ItemIsSelectable | Qt::ItemIsEnabled | editable );


all other line row go + 1