Margin overpaint with 'setEolVisibility(True)'

Phil Thompson phil at riverbankcomputing.com
Tue Dec 6 12:12:53 GMT 2022


On 27/11/2022 21:48, Matic Kukovec wrote:
> 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

Fixed in the next snapshot.

Thanks,
Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 14946 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20221206/24c24290/attachment.png>


More information about the QScintilla mailing list