[QScintilla] QScintilla issue on Qt5

Detlev Offenbach detlev at die-offenbachs.de
Thu Jan 30 18:49:27 GMT 2014


Hi Phil,

I got a step further by modifying my focus out event method. There is one thing left. When I 
select an entry of the list by double clicking, it is inserted at the cursor position and the list is 
removed. However, keyboard input focus is not given back to QScintilla and the cursor does not 
blink (indication for the first). No focusIn event is generated

Clicking into the editor makes it work again, i.e. a focusIn event is generated and focus is 
changed to the editor.

Do you think you can fix that?

Detlev

On Monday 27 January 2014, 18:31:16 Phil Thompson wrote:
> On 27-01-2014 6:16 pm, Detlev Offenbach wrote:
> > On Monday 27 January 2014, 10:08:56 you wrote:
> >> On 26-01-2014 6:28 pm, detlev wrote:
> >> > Am 26.01.2014 19:12, schrieb Phil Thompson:
> >> >> On 26-01-2014 5:33 pm, Detlev Offenbach wrote:
> >> >>> Unfortunately it doesn't without my code. I am a bit lost right
> >> >>> 
> >> >>> now.
> >> >>> 
> >> >>> Qt4 works fine, Qt5 behaves strange with the same code.
> >> >> 
> >> >> Try the attached. You can switch between PyQt4 and PyQt5 by
> >> >> 
> >> >> commenting in/out the imports at the top.
> >> >> 
> >> >> 
> >> >> 
> >> >> Phil
> >> > 
> >> > OK, this behaves a bit different again. The list is shown and
> >> > 
> >> > selectable like in eric with the list removal code disabled. When
> > 
> > I
> > 
> >> > select an entry, the text is inserted into the editor. However,
> > 
> > the
> > 
> >> > keyboard isn't handed back to the editor.
> >> 
> >> It works fine for me under all circumstances that I can think of
> >> 
> >> checking.
> >> 
> >> 
> >> 
> >> When you say "select an entry" I assume you mean double click or
> > 
> > press
> > 
> >> return. Single clicking should just move the highlight.
> > 
> > Double clicking is what I meant. Using the keyboard for navigation
> > works fine.
> > 
> >> > Switching focus to another window makes the list go away. So there
> >> > 
> >> > 
> >> > could be something within eric that gets in the way. Nevertheless,
> > 
> > I
> > 
> >> > don't understand, why the code works fine with Qt4 and not with
> > 
> > Qt5.
> > 
> >> As you say, Qt4 and Qt5 clearly work differently (or Qt5 is buggy).
> > 
> > So it seems we have to see, if other eric users start experiencing a
> > similar behaviour. I don't know where to look at. In Qt4 NO focus
> > events are generated when I click inside the list whereas for Qt5
> > these are generated. Can this be related to input methods?
> 
> I don't think so - you could try removing the input method support to
> see if it makes a difference.
> 
> My bet would be Qt5 bugs.
> 
> Phil-- 
*Detlev Offenbach*
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20140130/f487a7a0/attachment.html>


More information about the QScintilla mailing list