PDA

View Full Version : How do you sleep when using a QTimer



newqtuser
30th October 2008, 01:49
Im wondering how i can sleep for a few seconds when my timer is started. I have a class that is instanciated from a slot, and this class does some xml-rpc stuff and needs to call sleep and pause() to wait for a external unix signal but when my gui thread calls my class with the slot that starts the object that performs the xml-rpc stuff the gui thread blocks. The timer is started from the constructor and i am getting xml messages.I really dont want this in a qthread because of the sleep. Any help would be great