[Interest] QKeyEvent::key() vs. X11 keysym : mapping?

René J.V. Bertin rjvbertin at gmail.com
Thu Mar 2 15:48:07 CET 2017


Hello,

Is there a relationship between the Qt::Key enum values returned by QKeyEvent::key() and X11 keysyms? A quick glance of qnamespace.h suggests there is, at least for certain range of the enum values, but how difficult would it be to write an efficient mapping?

This is for porting some software that uses QKeyEvent::nativeVirtualKey() which works fine under X11 but not on Mac/Cocoa nor (I presume) on MS Windows.

Thanks,
R.



More information about the Interest mailing list