while(1)
{
printf("Qt");
}
how to quit this loop using keyboardhit...
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
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks