Does anybody know how to have all of the text "selected" in a QTableWidgetItem after a double mouse click?

Currently, the local editor is invoked, the cursor shows up, but you still have to use the mouse to select the existing text.

The starting point for my code is...

void SpreadSheet::mouseDoubleClickEvent(QMouseEvent* pevent)
{
QTableWidget::mouseDoubleClickEvent(pevent);

} // SpreadSheet::mouseDoubleClickEvent(