How about a simple Qt::MenuAccelerator (or Macro) that is defined as the
MetaButton on the Mac and as the Ctrl key on the PC...
That there is a key on the Keyboard labeled "Ctrl"... but it's not the
control key identifier (Qt::ControlButton), but only on one platform, seems
a bit odd. There is a fine line between cross platform code portability and
obfuscating platform peculiarities. It is possible that somebody (me) might
actually try and use the Control key for something else besides menu short
I'll drop them a line as a suggestion for Qt 4.0.
On 3/24/05 3:07 PM, "Dimitri" <dimitri@xxxxxxxxxxxxx> wrote:
>> I suppose I can see the logic here... Still, the ctrl key and the "meta" key
>> are not the same on both platforms. A higher level abstraction for keyboard
>> accelerators might have been better. [...]
> Why not? I can't find a better abstraction but if you can suggest a
> better one it could be included in Qt 4. Send suggestions here:
> I'm afraid this won't be modified in Qt 3 because of compatibility.
> List archive and information: http://lists.trolltech.com/qt-interest/
List archive and information: http://lists.trolltech.com/qt-interest/