How to implement in code LineEdit's expand_to_text_length

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ejnij

This property doesn’t affect changes from code, and I was unable to replicate it with different methods. Is there any way to do that?