How can I get the text margins for a QLineEdit?
Note the red lines in the screenshot, that's the margins I'm interested in:
I tried qDebug() << ui->lineEdit->textMargins();
for the edit box from the screenshot, but it printed QMargins(0, 0, 0, 0)
, even though the edit box does have margins.