Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED]QLineEdit size with PlaceHolder
Kaluss last edited by Kaluss
does anybody know if it's possible to fit size of QLineEdit to PlaceHolder text?
Is any metod or I have to use fixed size??
mcosta last edited by
you could use
QFontMetrics::width()to get the widht of the placeholder text. Then use that width to set the