Personal Website

My Web: MindEchoes.com

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: http://linkode.org/IYhVW93lpgeEahMDknzfe5

QTextEdit version code: http://linkode.org/xSUXB2BtJ2oFRFshlELyJ


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


No comments: