Looks related to
QTBUG-41042, but this issue occurs in 5.9.3 and 5.11. Easy to reproduce with the simple attached program: press and hold to move the cursor via the magnifying glass, then click the on-screen delete key when finished. The wrong character will be deleted.
Potentially related to
QTBUG-66028 (text not shown in magnifier).