Keyboard input on remote display



  • Hello,
    I have an application using some 3D objects, the mouse to interact with them and some keyboard keys to tune the translations of my objectsand so on. My program works fine on my computer but I MUST execute it on remote display (with export DISPLAY=mg:0.0) to adapt it to the big program I work on.

    When I export the display, the keyboard keys are not recognized at all. The mouse, however, works perfectly.

    I'm using a QGraphicsScene and the keyPressEvent(QKeyEvent * keyEvent) method to catch keyboard input.

    Does someone know why it does not work and how to make it work ?



  • Ok, nevermind, I solved it. My keyboard was not plugged in. Sorry for those who really have this problem, if it exists.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.