Margin overpaint with 'setEolVisibility(True)'

Matic Kukovec kukovecmatic at hotmail.com
Sun Nov 27 21:48:07 GMT 2022


Hi,

My Specs: Python 3.10.4 x64, PyQt 6.4.0, QScintilla 2.13.3

When having at least one margin and setting 'QsciScintilla.setEolVisibility(True)',
this is what happens to the margin when scrolling horizontally:
[cid:0703ea12-9f1d-4fdc-834f-5032ae002ed2]
Is this a bug in QScintilla or in the underlying Qt Scintilla widget?

Here is the code to reproduce it:
import PyQt6.QtGui
import PyQt6.Qsci
import sys

application = PyQt6.QtWidgets.QApplication(sys.argv)
editor = PyQt6.Qsci.QsciScintilla()
editor.setMarginType(0, PyQt6.Qsci.QsciScintilla.MarginType.NumberMargin)
editor.setMarginWidth(0, "000000")
for i in range(100):
    editor.append("Hello World | " * 50 + "\n")
editor.setEolVisibility(True)
editor.show()

application.exec()

The same code with 'setEolVisibility(False)' does not have this problem.

Regards,
Matic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20221127/56b2016b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 14946 bytes
Desc: image.png
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20221127/56b2016b/attachment-0001.png>


More information about the QScintilla mailing list