May 14, 2011

koahnig koahnig
Robot Herder
2990 posts

avoid entering energy saving mode


I have an application using Qt for TCP/IP communication. The application is receiving real-time data through the tcp/ip bascially until the application is stopped.
Unfortunately, is the Windows 7 energy saving option hibernating the system while the application is still running. After waking up the application sometimes even seem to continue the receiption the real-time data. However, always a gap in the data will occur.
Is there a possibility to suspend the energy saving through Qt?

2 replies

May 14, 2011

Gerolf Gerolf
Hobby Entomologist
3251 posts

I think you have to use the native Win32 API for that.


Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

May 14, 2011

Tobias Hunger Tobias Hunger
Ant Farmer
3387 posts

You will need platform specific code to disable energy saving.

  ‹‹ Use changed spinbox-value in another void-function      Target multiples MacOS X version with one computer ››

You must log in to post a reply. Not a member yet? Register here!