Windows Power State change event notification in Qt
Posted
by
Surjya Narayana Padhi
on Stack Overflow
See other posts from Stack Overflow
or by Surjya Narayana Padhi
Published on 2010-12-21T07:04:29Z
Indexed on
2010/12/21
7:54 UTC
Read the original article
Hit count: 250
Hi Geeks,
I developing a GUI in QT where I have to show the battery status icon. To get the system power status, I am using the windows API. But to show status anytime , do i need to use a thread to continuously read and display the power status?
I am thinking of using event handler. But not sure how to implement. I am thinking that for just one status icon I will run a thread. Anybody has any better suggestion, please share.
© Stack Overflow or respective owner