<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
My specifications:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<ul>
<li>Lubuntu x64 (same problem on Windows 10)<br>
</li><li>PyQt 6.3.0</li><li>QScintilla 2.13.3<br>
</li></ul>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div class="elementToProof">On executing the code below, every text change on PyQt6.3.0 / QScintilla 2.13.3 throws a:</div>
<blockquote style="margin-top:0;margin-bottom:0">
<div class="elementToProof"><i><b>TypeError: unable to convert a QVariant back to a Python object</b></i><br>
</div>
</blockquote>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: "Segoe UI", "Segoe UI Web (West European)", "Helvetica Neue", sans-serif;"><br>
</span></div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: "Segoe UI", "Segoe UI Web (West European)", "Helvetica Neue", sans-serif;">Is there some</span><span style="font-family: "Segoe UI", "Segoe UI Web (West European)", "Helvetica Neue", sans-serif;">thing I'm doing
</span><span style="font-family: "Segoe UI", "Segoe UI Web (West European)", "Helvetica Neue", sans-serif;">wrong or is it a
<i><b>QScintilla </b></i>problem?</span></div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Segoe UI;">The code:</span></div>
<blockquote style="margin-top:0;margin-bottom:0">
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div class="elementToProof">import PyQt6.QtWidgets</div>
<div class="elementToProof">import PyQt6.Qsci</div>
<div>import sys</div>
<div><br>
</div>
<div>application = PyQt6.QtWidgets.QApplication(sys.argv)</div>
<div><br>
</div>
<div>def __text_modified(*args):</div>
<div> print("HERE")</div>
<div>editor = PyQt6.Qsci.QsciScintilla()</div>
<div>editor.SCN_MODIFIED.connect(__text_modified)</div>
<div>editor.show()</div>
<div>editor.setText("Hello World")</div>
<div><br>
</div>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
application.exec()</div>
</blockquote>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Segoe UI;">Thanks,</span></div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Segoe UI;">Matic</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
</body>
</html>