PDA

View Full Version : Menu shortcuts in Visual Studio?



kw
16th March 2006, 22:11
Hi,

I'm creating a simple window, based on QMainWindow.. I'm developing it in visual studio, and everything seems to be working OK, but I can't get the keyboard shortcuts to work. (I don't mean the actual shortcuts like CTRL+O etc, but things like Exit)
Im used to it working where I could use "E&xit" as text, and it would work automagically through parsing, but Ive been trying that to no avail.
Anyone know how to do this in a new Qt version? I'm using Qt 4.1.0
Worth noting is that in the example apps the underline in the menu doesn't seem to be working perfectly either, but atleast they work. In my own programs Im not getting it to work at all.

Thx in advance,
kw

kw
16th March 2006, 23:30
oops, never mind. I see now that the & does in fact work in the same way as it always did.. I just messed up in using it. I thought the underline was always there, but when I tested just now with other programs I remembered it only shows AFTER you pressed alt. Turns out that when I did that with my new Qt app, it already worked as expected.. :o
D'oh!

-kw