Ksshaskpass ?

Daniel Nicoletti dantti12 at gmail.com
Fri Dec 12 15:24:41 GMT 2014

Is there a similar QWidget::grabKeyboard for the QML/Quick world?

2014-12-12 13:11 GMT-02:00 Thomas Lübking <thomas.luebking at gmail.com>:
> On Freitag, 12. Dezember 2014 08:00:45 CEST, Martin Gräßlin wrote:
>> I'd suggest to do a platform check as on Wayland it cannot work (grab
>> keyboard fails).
> You're certainly right in that the guarding is entirely superfluous on
> wayland, but grabbing still "works".
> Despite the platform window ::setKeyboardGrabEnabled() returns false for
> wayland, QWidget simply ignores that and assigns the grabber.
> What's worse: looking up the Qt code, QWidget only maintains the grabber as
> static variable, the grabbing state is never re-tested.
> Eeeewww... this is gonna be more complex, I fear.
> I wonder whether the grabbing state can actually be tested except by
> approaching a grab from a sidearm process. In doubt, the only possible
> hardening would be to continuously - and the only test whether it worked
> would be to invoke QWindow::setMouseGrabEnabled(bool grab) as well.
> Stay tuned ;-)
> Cheers,
> Thomas

Daniel Nicoletti

KDE Developer - http://dantti.wordpress.com

More information about the kde-core-devel mailing list