[PyKDE] scrollbars in QTextEdit do not work for me

Tom Brown brown at esteem.com
Tue Feb 28 17:05:38 GMT 2006


On Tuesday 28 February 2006 08:48, Tom Brown wrote:
> On Monday 27 February 2006 16:44, Tom Brown wrote:
> > On Monday 27 February 2006 16:39, Andreas Pakulat wrote:
> > > Are you using PyQt3 or PyQt4? And also a minimal compilable example is
> > > very helpful when reproducing this.
> > >
> > > I can't reproduce this with PyQt4 and a small example that fills the
> > > QTextEdit after showing it...
> >
> > I am using PyQt3. I will have to put together a minimal compileable
> > example later.
>
> Well, I put together a simple example. However, it works as expected in the
> simple example. I am using threads in my application. I am reading from the
> serial port in a thread, then posting events to the main application to
> insert characters into the QTextEdit. I believe that is the way to do it. I
> don't think that threading is the problem anyway because when I manually
> type into the QTextEdit the vertical scrollbar still does not appear. Any
> ideas?
>

Ok, I figured it out. I had set the resizePolicy to AutoOne in an attempt to 
get something else to work and didn't set it back. I set it back to Manual 
and I get the vertical scrollbar now.

Thanks,
Tom




More information about the PyQt mailing list