Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt: couldn't retrieve an initial keyboard state
Qt 6.11 is out! See what's new in the release blog

Qt: couldn't retrieve an initial keyboard state

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #2

      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...

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved