Keyboard doesn't attach after application start - Raspberry Pi
-
Hi,
keyboard in app works fine until I unplug and plug in my keyboard again. Then it stops working in QT application and output goes directly to console (but of course app still covers console) - I found it out when I logged in via ssh and kill the app.QT version 4.7.
Is there anybody who faced a similar problem?
Thanks a lot for ur replies.
-
Hi,
AFAIK, when starting the application, Qt detects (or you tell it) what device to use. When unplugging and replugging, your kernel is probably creating a new device which is not the same as the one used by your application.
-
I'd say it too.
And is there any fix? -
Don't play with the keyboard or use your OS to detect that and restart your application.
-
@SGaist: Yeah, of course, I thought of that. But isn't there any procedure to re-attach keyboard during app run in QT?
-
Not that I know of, but you can try asking on the interest mailing list. You'll find Qt's developers/maintainers there (this forum is more user oriented)