[QScintilla] Force cursor rendering

Sam Aaron samaaron at gmail.com
Fri Jul 12 16:48:48 BST 2019


OK, so it seems that calling QApplication::setActiveWindow with the QScintialla widget as an argument seems to solve it for me :-)

Sam

> On 12 Jul 2019, at 16:14, Sam Aaron <samaaron at gmail.com> wrote:
> 
> Hi there,
> 
> On macOS, when I first start my app which includes a number of QScintilla widgets, the cursor isn’t visible in any of them. However, selection, editing etc. all work with the invisible cursor. If I switch to a different OS app and then back again, the cursor is visible.
> 
> Does anyone know why this might occur and if not, whether it’s possible to force the kind of redrawing that happens when the app is switched back to at the launch of my app? For example, I’ve tried calling activeWindow() on all the QScintilla widgets on creation but that doesn’t seem to have any affect and the cursor is still initially invisible.
> 
> Kind regards,
> 
> Sam



More information about the QScintilla mailing list