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
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
Take a look at QKeyEvent, QWidget::setMask, QCursor::setPos, QProcess::execute
Ali Reza (5th June 2012)
Thanks a lot mentalmushroom
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.
Bookmarks