[Qt-interest] QTextEdit line size, constraining size to integral lines
Denis Akhmetzyanov
dakhmetzyanov at smartlabs.tv
Mon Apr 12 11:29:09 CEST 2010
Hi,
> You need to query the font and ask for it's size. See
QWidget::fontMetrics(), QFontMetrics::height().
One note: Using QFontMetrics::lineSpacing() is better for getting line
height.
2010/4/9 John Weeks <john at wavemetrics.com>
> I would like to use a pair of QTextEdit widgets with a QSplitter arranged
> vertically. I would like to constrain the splitter to show no less than one
> line of text in either QTextEdit. Is that possible?
>
> Can I get the line height of a QTextEdit or the underlying QDocument?
>
> Should I use a QPlainTextEdit?
>
> Thank you!
> Regards, John Weeks
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
Best regards,
Denis Akhmetzyanov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100412/221e09b0/attachment.html
More information about the Qt-interest-old
mailing list