I believe this is C++ code and I only vaguely understand what it is actually doing, some things in the Qt library I can do but a great deal of it leaves me scratching my head the I cannot 'translate' it properly, secondary question, could it be that I don't know how to read the Qt library properly ?

this only aligns the cursor to the right of the QLineEdit()
which I have already done, however when input is entered it is pushed from left to right, whereas it should make the cursor move over one place to the left ..hope this makes sense

The same solution but without using classes, using python lambda function.
This, to writing hello presents " |olleh" and the cursor is moves to left.
@
lineEdit = QtGui.QLineEdit()
lineEdit.setAlignment(QtCore.Qt.AlignRight)
lineEdit.textChanged.connect(
lambda: lineEdit.cursorBackward(False))
@