Did you actually read what the function documentation says? After reading it, it doesn't make sense what you're saying.![]()
Did you actually read what the function documentation says? After reading it, it doesn't make sense what you're saying.![]()
J-P Nurmi
Ow Really...?
Well, I am very newbie in QT. Maybe there are some misunderstandings in reading the help.
Btw, I have try by doing this:
But the effect of this code, the program become hang. Cannot be resize or anything except the close button on the top right, to close the program.Qt Code:
if(e->key()==16777251){ grabKeyboard(); } }To copy to clipboard, switch view to plain text mode
Did you read until that part?
You don't call it when you receive a key event - you call it to prevent other widgets from receiving key events. And it also says you have to eventually release the keyboard...This widget receives all keyboard events until releaseKeyboard() is called; other widgets get no keyboard events at all.
Oow... Hm.. OK.. I understand what do you mean now..![]()
Bookmarks