Try style sheets: Customizing QLineEdit
slava (15th February 2008)
Hey! That worked! Thank you very much!!!
But it makes the lineEdit smaller somehow. I have a font set to 12 for the whole application and the other lineEdits are big but that one gets back to 10 px.
I put setFond to 12 after that lineEdit again but that doesn't help. The same with the textEdits...
I did:
lineEdit->setStyleSheet("border: 1px solid red");
I have figured it out. Thank you!![]()
Bookmarks