PDA

View Full Version : Checking max text lenght to fit in line edit?



maverick_pol
15th June 2008, 23:08
Hi guys,

I would like to ask is there a way to find if the text I have entered in the line Edit is fully visible? Is the text entered longer then lineEdit max text visible?

Thanks for any advice,

Kacper

wysota
15th June 2008, 23:28
I guess using QFontMetrics is the only possibility.

maverick_pol
16th June 2008, 01:24
Thanks for the hint I will check it.

Kacper