Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How does the width of qlineedit fit into the length of the text
duncan98 last edited by
How does the width of qlineedit automatically adapt to the length of text
JonB last edited by JonB
I don't think it does. Are you looking for some kind of "line edit should expand & contract to fit text as user types characters"? I think you'd have to do this yourself via
textChangedsignal. If so, there are several hits out there if you Google, you could look at the accepted answer in https://stackoverflow.com/questions/30031103/qlineedit-auto-resize-to-content, I don't know if it's best but looks like it should work for you as you type.