[QScintilla] QScintilla feature request

Detlev Offenbach detlev at die-offenbachs.de
Sat Sep 15 12:10:33 BST 2007


On Dienstag, 11. September 2007, Phil Thompson wrote:
> On Sunday 09 September 2007, Detlev Offenbach wrote:
> > Hi Phil,
> >
> > please add a method font() to QsciScintilla to return the default font,
> > i.e. nl_font.
> >
> > Regards,
> > Detlev
>
> font() is already implemented, but I've changed it to return the value set
> using setFont().
>
> Phil

Thanks. I've just updated to the latest QScintilla2 snapshot and found the 
following strangeness. I am describing it in steps.

Step 1: I am initializing a QScintilla2 based editor and  I am setting the 
font using setFont (e.g. seting it to "Bitstream Vera Sans Mono". Therafter 
font() returns that font.

Step 2: I am adding this editor to a tab widget with QTabWidget.addTab(...). 
After that step, editor.font() returns the application default font (in my 
case "Bitstream Vera Sans".

It seems, that QTabWidget.addTab() changes the font in a way, that doesn't get 
routed through QScintilla2. The display of the text within QScintilla doesn't 
change either.

Therefore I recommend to add a method font() to QScintilla2, that returns the 
nl_font attribute.

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the QScintilla mailing list