Personal Website

My Web:

Friday, April 4, 2014

Testing QPlainTextEdit and QTextEdit scrolling

I was looking for a way to implement smooth scrolling in a QPlainTextEdit component because the per line scrolling looks awful... and i find out that it seems that that kind of scrolling is not supported in QPlainTextEdit, but it's the default kind of scrolling in QTextEdit, which for my surprise wasn't a specialization of QPlainTextEdit.

QPlainTextEdit version code:

QTextEdit version code:

And here is a video of how the scrolling differs between each one:

No comments: