PDA

View Full Version : Will k->matches(QKeySequence::Copy) works for all the OS Platforms



mnrao1230
28th February 2012, 13:54
Hi,

I would like to know will k->matches(QKeySequence::Copy) works for all the OS Platforms .

I tested in windows and its working fine. Would like to know if it works in Linux or Solaris also.


thanks,
Prabhakar

wysota
28th February 2012, 14:37
What's "k"?

qtnewbi3
28th February 2012, 18:34
You should also consider that if you are using this to represent shortcuts maybe ctrl key on windows vs cmd key on mac might play a role. Also, depends on keyboard layout issues as mentioned in the documentation.

mnrao1230
29th February 2012, 06:17
Sorry to mention....

here K is QKeyEvent..

wysota
29th February 2012, 10:06
I would like to know will k->matches(QKeySequence::Copy) works for all the OS Platforms .
Yes, provided a particular standard shortcut is defined on a particular platform. However usually you shouldn't need to do such matching yourself as you can use QShortcut instead.