[Qt-interest] Fixed width QLineEdit boxes.

Diego Iastrubni diegoiast at gmail.com
Wed Feb 24 13:24:04 CET 2010


Set the font to a fixed width font, and compute the size (+padding+margin)
to that value.

On Wed, Feb 24, 2010 at 1:27 PM, phil prentice <philp.cheer at talktalk.net>wrote:

> Hi
>  Is there a way to force a QLineEdit box to only be large enough for 2
> characters.  I would like the box to be fixed size and only be large enough
> for 2 characters.
>
>  I presume that the size of the lineEdit box will be affected by the font
> size?
>
> Thanks for any hints
>
> Phil
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100224/a7bcb1ac/attachment.html 


More information about the Qt-interest-old mailing list