[Qt-interest] Win64 declaration of Sleep()?

Robert Hairgrove evorgriahr at hispeed.ch
Fri Jan 2 19:31:37 CET 2009


Scott Aron Bloom wrote:
> amd this has what todo with QT?
> -Scott
> --Sent from my mobile device--

It has to do with Qt because:

(1) I am interested in writing software which runs on all platforms 
supported by Qt, and WIN32 just happens to be one of them;

(2) This issue doesn't present itself under other OS than Windows;

(3) There is no system-wide "sleep" function defined in the Qt 
libraries, and the one(s) that is/are are protected member functions of 
QThread, therefore not readily accessible from outside the framework.

(4) Since I cannot (and don't want to) include any Windows header files 
in my projects, I need to declare such functions as necessary (within 
#ifdef ... #endif guards) such as I have done.

OK??



More information about the Qt-interest-old mailing list