[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Assistance wanted for Qt ginput() bug #44832
From: |
JohnD |
Subject: |
RE: Assistance wanted for Qt ginput() bug #44832 |
Date: |
Sat, 20 Jun 2015 08:37:01 -0400 |
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 19 Jun 2015 13:11:49 -0700 (PDT)
> From: Philip Nienhuis <address@hidden>
> To: address@hidden
> Subject: Assistance wanted for Qt ginput() bug #44832
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> As adviced by Rik I'm asking here for some assistance with bug #44832:
> ginput() only recognizes key pressed after a first mouse click.
> Apparently the Canvas must be made an active object as soon as a figure
is
> made active, and not only after it was clicked; but it is unclear how to
do that.
>
> Thanks,
>
> Philip
>
It might be something as simple as calling setFocus on the canvas's widget
when creating the canvas widget. You may need to set the focus policy as
well.
http://doc.qt.io/qt-4.8/qwidget.html#focus-prop