View Full Version : API functions in Qt?
Ali Reza
5th June 2012, 07:53
hi all
how to use windows API functions in Qt?
such as GetAsyncKeyState() , SetWindowRgn() , SetCursorPos() ,....
another problem..
how to execute an application in my program?
for example: calc.exe
regards
mentalmushroom
5th June 2012, 08:06
Take a look at QKeyEvent, QWidget::setMask, QCursor::setPos, QProcess::execute
Ali Reza
5th June 2012, 08:12
Thanks a lot mentalmushroom
ChrisW67
6th June 2012, 02:28
how to use windows API functions in Qt?
Qt is a library not a compiler or language. You can use Windows API functions from any language that supports accessing the binary interface of the Windows libraries: this includes C++. You do this exactly same way you would do it if you program was not using Qt libraries at all.
However, as has been pointed out above, the Qt libraries provide portable (mostly) alternate mechanisms for all the examples you quoted.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.