[PyQt] QScintilla problems.

Colin McPhail mcphail_colin at hotmail.com
Tue Aug 20 15:05:52 BST 2019

> On 18 Aug 2019, at 19:30, Barry Scott <barry at barrys-emacs.org> wrote:
> The attached code shows two problems with QScintilla.
> 1. SCI_STYLEGETFONT does not return the font.
> 2. Changing the size to 24pt makes line spacing be 24pt but the text is drawn in 11pt.
> (1) looks likes a bug.
> (2) may be that I do not understand something about how to drive the API.
> What makes Scintilla use the changed settings.
> (3) Changing the font does not seem to work either.
> What am I misunderstanding?
> Barry

I'm not a QScintilla expert but I imagine most people use the convenience methods of QScintilla objects such as setFont() and setText(). I've attached a version of your example code that uses those methods.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: qsci_bug_2.py
Type: text/x-python-script
Size: 923 bytes
Desc: qsci_bug_2.py
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20190820/107aeeb5/attachment.bin>

More information about the PyQt mailing list