QCAD uses keyboard layout US (default) instead of DE

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
jro
Newbie Member
Posts: 3
Joined: Sat Apr 11, 2020 6:38 pm

QCAD uses keyboard layout US (default) instead of DE

Post by jro » Sat Apr 11, 2020 9:34 pm

Hi all, some days ago I had to do a fresh installation of Debian Buster with xfce. After starting qcad (qcad 3.23.0 or qcadcam 3.24.2) from a terminal very often - but not always - Qt warns about using hard-coded key map, which is qwerty layout - see below. Only a German keyboard is configured. Prior to the fresh Debian installation the same computer was running the same Debian Buster with xfce, but upgraded from previous versions over the years, and there was no keyboard issue. No other program shows this behaviour.
Now, keystrokes in qcad command line seem to come from a qerty keyboard ( Z <-> Y swapped, ".,+-=" on different keys).
Over the time there were a few forum entries similar to mine, but without any solution for my problem. Internet search did not help, I still cannot tell in detail, how Qt tries to determin keyboard configuration.

copies from terminal
jro@jro201:~/Programs/qcadcam$ localectl
System Locale: LANG=en_US.UTF-8
LANGUAGE=en_US:en
VC Keymap: n/a
X11 Layout: de
X11 Model: pc105
X11 Variant: nodeadkeys
X11 Options: ctrl:nocaps
jro@jro201:~/Programs/qcadcam$

keyboard input shows as expected in terminal, including German Umlauts:
jro@jro201:~/Programs/qcadcam$ qwertz äöüß

jro@jro201:~/Programs/qcadcam$ cat ~/.Xmodmap
! change windows key to scroll-lock
keycode 133 = Scroll_Lock NoSymbol Scroll_Lock
! make caps-lock key another shift_l key
keycode 50 = Shift_L NoSymbol Shift_L

jro@jro201:~/Programs/qcadcam$ xmodmap ~/.Xmodmap
jro@jro201:~/Programs/qcadcam$


jro@jro201:~/Programs/qcad$ ./qcad
QCAD version 3.23.0
Warning: Qt: Could not determine keyboard configuration data from X server, will use hard-coded keymap configuration.
21:34:29: Debug: done
jro@jro201:~/Programs/qcad$ cd ..
jro@jro201:~/Programs$ cd qcadcam
jro@jro201:~/Programs/qcadcam$ ./qcad
QCAD version 3.24.2
Warning: Qt: Could not determine keyboard configuration data from X server, will use hard-coded keymap configuration.
Warning: RPropertyTypeId::generateId: property already initialized: 7RObject : "" : "Invisible"
21:34:49: Debug: RGLES3DPlugin::initScriptExtensions
21:34:50: Debug: RGraphicsViewGLES3D::initializeGL
21:34:52: Debug: RGLES3DPlugin::initScriptExtensions
21:34:56: Debug: done
jro@jro201:~/Programs/qcadcam$

User avatar
andrew
Site Admin
Posts: 9061
Joined: Fri Mar 30, 2007 6:07 am

Re: QCAD uses keyboard layout US (default) instead of DE

Post by andrew » Tue Apr 14, 2020 8:41 am

Unfortunately, I couldn't do more than search the Internet for this problem either. Here's something that comes up:

https://github.com/spyder-ide/spyder/issues/3713

I.e.:

Code: Select all

export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
./qcad

jro
Newbie Member
Posts: 3
Joined: Sat Apr 11, 2020 6:38 pm

Re: QCAD uses keyboard layout US (default) instead of DE

Post by jro » Tue Apr 14, 2020 9:46 am

thank you for your effort, Andrew, I have tried several similar hints without success.

Today, at work, the same problem showed up on second computer. This time the culprit is a ‘Debian 9 Stretch’ system, that was installed a long time ago. In desperation I renewed my locales settings:

# pfk-reconfigure locales

After reconfiguring my keyboard returned to QWERTZ once again.

Obviously, something must have touched my locales settings on both computers. I have no clue what caused the problem, maybe an update, or a newly installed program? What do you know!

jro
Newbie Member
Posts: 3
Joined: Sat Apr 11, 2020 6:38 pm

Re: QCAD uses keyboard layout US (default) instead of DE

Post by jro » Thu Jul 02, 2020 8:49 am

The same keyboard layout problem came up again. Using my above mentioned remedy I found a mistake. Pls. use

# dpkg-reconfigure locales

and then reboot. logout / logon might be sufficient, but I have not tried it out.

Post Reply

Return to “QCAD Troubleshooting and Problems”