How to get text fields for QLineEdit?
Notice the red lines in the screenshot that the fields that interest me are:

I tried qDebug() << ui->lineEdit->textMargins(); for the edit window from the screen, but printed QMargins(0, 0, 0, 0) , although the edit field has fields.
source share