[Qt-interest] Fixed width QLineEdit boxes.
phil prentice
philp.cheer at talktalk.net
Wed Feb 24 13:52:42 CET 2010
Thank you Diego for your help
How exactly do I specify a fixed size font in QT? Do I have to do something
like this?
setFont(QFont("Monspace", 7));
where Monospace I presume would have to be defined as a fixed size font??
What makes the font a fixed width one?
Thanks
On Wednesday 24 February 2010 12:24, Diego Iastrubni wrote:
> 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
More information about the Qt-interest-old
mailing list