[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] How could I tell a QTextEdit to put the text in it at the bottom of the widget instead of the
From:       inhahe <inhahe () gmail ! com>
Date:       2015-06-14 14:45:23
Message-ID: CAPeSgWrnh_UBnS1Pqxo-+vapKEN0B8o=MFv-qK4WFLgS2aMA1w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


When there's not enough text in the QTextEdit to require a scroll-bar, I
want what little text is in it to be placed at the bottom of the QTextEdit
instead of at the top (like for example, how it works in an mIRC window).
How could I do this?

I tried .setStyleSheet("position: absolute; bottom: 0")
and setStyleSheet("* {position: absolute; bottom: 0}"); those didn't work.

I thought about putting all my text in between <span
style="position:absolute; bottom:0"> and </span> (using .insertHtml), but
(presuming that would even work) that could introduce difficulties because
I'll be continually adding lines to the bottom of text inside the span and
I don't want to have to re-insert the entire scroll of text with the span
tags around it each time I add a line..

Thanks for any help..

[Attachment #5 (text/html)]

<div dir="ltr">When there&#39;s not enough text in the QTextEdit to require a \
scroll-bar, I want what little text is in it to be placed at the bottom of the \
QTextEdit instead of at the top (like for example, how it works in an mIRC window). \
How could I do this?<div><br></div><div>I tried .setStyleSheet(&quot;position: \
absolute; bottom: 0&quot;) and  setStyleSheet(&quot;* {position: absolute; bottom: \
0}&quot;); those didn&#39;t work.</div><div><br></div><div>I thought about putting \
all my text in between &lt;span style=&quot;position:absolute; bottom:0&quot;&gt; and \
&lt;/span&gt; (using .insertHtml), but (presuming that would even work) that could \
introduce difficulties because I&#39;ll be continually adding lines to the bottom of \
text inside the span and I don&#39;t want to have to re-insert the entire scroll of \
text with the span tags around it each time I add a \
line..</div><div><br></div><div>Thanks for any help..</div><div><br></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic