Ups, I've ment: QLineEdit::setTextMargins().