while(1)
{
printf("Qt");
}
how to quit this loop using keyboardhit...
Printable View
while(1)
{
printf("Qt");
}
how to quit this loop using keyboardhit...
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