Surjya Narayana Padhi
Surjya Narayana Padhi

Reputation: 7841

Using WINAPI in Qt applications

Can anybody tell if I can use the Windows APIs in my qt application? If yes can anybody tell me the procedure to do it? I need to use the msdn winapi "GetSystemPowerStatus" in my qt application to show the battery status in my qt GUI based application.

Upvotes: 0

Views: 511

Answers (1)

Caleb Huitt - cjhuitt
Caleb Huitt - cjhuitt

Reputation: 14941

Yes, you can use those APIs (generally speaking), by including the appropriate header files.

It will make your code platform-specific (non-portable), so if there is a cross-platform way of doing so, I would use that.

Upvotes: 1

Related Questions