Re: [Interest] QTextEdit with QDockWidget

2018-09-28 Thread Igor Mironchik
Hi, I found a mistake: I shared the same QTextDocument between 2 QTextEdit. First was initialized and shown, had correct width, whereas second wasn't initialized yet and had small width. So text was wrapped to smaller width. Thank you. On 28.09.2018 17:26, Igor Mironchik wrote: Hello, I

Re: [Interest] QTextEdit with QDockWidget

2018-09-28 Thread Igor Mironchik
And this happens only when I use text edit in QDockWidget... On 28.09.2018 17:34, william.croc...@analog.com wrote: 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

Re: [Interest] QTextEdit with QDockWidget

2018-09-28 Thread Igor Mironchik
Hi, Background filling as desired, whole QTextEdit. I used:     QPalette p = palette();     p.setColor(QPalette::Base, Qt::red);     setPalette(p); On 28.09.2018 17:34, william.croc...@analog.com wrote: On 09/28/2018 10:26 AM, Igor Mironchik wrote: Hello, I have a dock widget with text edi

Re: [Interest] QTextEdit with QDockWidget

2018-09-28 Thread william.croc...@analog.com
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

[Interest] QTextEdit with QDockWidget

2018-09-28 Thread Igor Mironchik
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