Qt: couldn't retrieve an initial keyboard state



  • Hi everyone. I've been struggling on this for a while. I installed Qt Designer 5.2 on a RedHat 6.2 OS 64bit. Im able to use it locally. But when i try to run it through a XWindow remotely on my PC, i get the following error:
    [admin@PCNAME ~]$ cd /opt/Qt5.2.0/5.2.0/gcc_64/bin/designer
    Qt: couldn't retrieve an initial keyboard state
    XIO: fatal IO error 2 (No such file or directory) on X server "159.40.16.270:0"
    after 175 requests (175 known processed) with 0 events remaining.

    I'm not using Qt Creator because my team at work are all coding in Eclipse. So i need to be able to build this in Eclipse.
    I'm using Open Text Exceed 14 to connect remotely from my Windows PC to RedHat.
    I'm able to bring up gedit and eclipse but nothing related to Qt. I even created a simple UI, built it using the following commands but i get the same problem, works locally but not remotely:
    uic MainWindow.ui -o ui_MainWindow.h
    qmake -project -o MainWindow.pro
    qmake
    make

    Please help, thanks.



  • Hi, I also get this error message on my Debian Linode 64-bits Wheezy server, both through remote X and using a VNC client.

    Recently tested Qt 5.2.1, first time I launch the Designer the error message is the same as yours. When I try again, I get a different keyboard-related message but the Designer appears! But no joy, although the mouse works the keyboard does not. I got around that by using Debian's onscreen keyboard, but that's really not a viable solution :-(

    The strange thing, at home I run a similar Debian server, and there the Qt 5.2.1 Designer works fine, not by remote X but through VNC.

    On my Linode server I've installed TightVNCServer and at home VNC4Server.

    So if you can persuade the admin of your RedHat server to install VNC4Server, maybe that'll help with your Designer sessions...


Log in to reply
 

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