Why do you want to put a QLineEdit inside a graphics scene?