View Full Version : Keyboard Hit
anu0050
2nd May 2007, 12:22
while(1)
{
printf("Qt");
}
how to quit this loop using keyboardhit...
high_flyer
2nd May 2007, 12:28
This code is not good.
But if you must use a while loop, you will have to add processEvets() in it, otherwise the GUI thread will not be able to process events.
About catching keyboard events read here:
http://doc.trolltech.com/3.3/qkeyevent.html
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.