Hi,
I want to limit the size of QLineEdit to only 3 chars, how to do that?
Notice that the user can change the font of QLineEdit so I need it to resize to show only 3 chars in user selected font size?
Thanks,
Mohammad
Printable View
Hi,
I want to limit the size of QLineEdit to only 3 chars, how to do that?
Notice that the user can change the font of QLineEdit so I need it to resize to show only 3 chars in user selected font size?
Thanks,
Mohammad
Use:
yogeshgokul:
setMaxLength() // Does not change the width of the QLineEdit
wysota:
What can I do with sizeHint()?
Thanks,
MIH1406
Or read the documentation.
Best Regards
NoRulez