[Interest] QTextEdit with QDockWidget

william.crocker at analog.com william.crocker at analog.com
Fri Sep 28 16:34:52 CEST 2018


On 09/28/2018 10:26 AM, Igor Mironchik wrote:
> Hello,
>
> I have a dock widget with text edit field. When I set document to QTextEdit
> document layouts with smaller width than width of QTextEdit. Look.
>
> Small width
>
> I can't do so to enlarge the width of the text. But when I put enough text to
> fit all height then width of the text begin regards the width of QTextEdit. Loook.
>
> Good width
>
> Does anybody know how to fix this problem to force the document to regard the
> width of the control?
>

You could start by changing the background color of the QTexEdit so you can see 
what it's
width really is.
- Is it narrow, not filling the dialog and does that explain to the narrow
   appearance.
- Or is it filling the dialog as desired and it, internally is squeezing the text
   for some reason.

Bill

> Thank you.
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>



More information about the Interest mailing list