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
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
http://brainstorm.ubuntu.com/idea/24714/image/1/
The Linux Counter Project - user number # 497262
The Ubuntu Counter Project - user number # 29025
Use:
Qt Code:
To copy to clipboard, switch view to plain text mode
MIH1406 (3rd June 2010)
MIH1406 (3rd June 2010)
yogeshgokul:
setMaxLength() // Does not change the width of the QLineEdit
wysota:
What can I do with sizeHint()?
Thanks,
MIH1406
http://brainstorm.ubuntu.com/idea/24714/image/1/
The Linux Counter Project - user number # 497262
The Ubuntu Counter Project - user number # 29025
MIH1406 (1st October 2009)
Or read the documentation.
Best Regards
NoRulez
MIH1406 (1st October 2009)
MIH1406 (3rd June 2010)
Bookmarks