Home:ALL Converter>How can I position the cursor where the mouse is clicked when editing a QTableWidget cell?

How can I position the cursor where the mouse is clicked when editing a QTableWidget cell?

Ask Time:2022-08-14T01:37:00         Author:backseat

Json Formatter

My app allows double-clicking on a QTableWidget cell to edit the content, but the cursor is always placed at the end of the existing content.

I've arranged for the content not to be selected on edit. How can I go about positioning the edit cursor where the mouse was clicked?

Author:backseat,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/73346426/how-can-i-position-the-cursor-where-the-mouse-is-clicked-when-editing-a-qtablewi
yy