[QScintilla] Long line scrolling?

Baz Walter bazwal at ftml.net
Sat Mar 14 20:11:15 GMT 2015


On 13/03/15 16:55, Matic Kukovec wrote:
> I did a little testing and found that it works as you say when there is
> no margin, more specifically no folding margin!
> If I add a number margin and a folding margin like this:
>
>     document.setMarginType(0, PyQt4.Qsci.QsciScintilla.NumberMargin)
>     document.setMarginWidth(0, "00")
>     document.setLexer(PyQt4.Qsci.QsciLexerCPP())
>     document.setFolding(PyQt4.Qsci.QsciScintilla.PlainFoldStyle)
>
> it behaves as I said for very long lines.
>
> Is there something wrong with the this code?

I don't see anything wrong with it and can confirm that adding margins 
seems to be the cause of the problem.

However, I tested your file in SciTE both with and without margins and 
it has no trouble going straight to the end of all the lines. So it 
looks like this issue is probably specific to QScintilla.

Hopefully Phil will be able to shed some light on that.

-- 
Regards
Baz Walter


More information about the QScintilla mailing list