android - Qt execute external executable program? -
i writing qt
programme connect android
devices.
i know should execute adb
first, , connection based on tcp
, need run
./adb forwards tcp:xxport tcp:xxport
how run line in qt
? have re-create adb
project file.
i develop on linux
, , run on windows xp
, prefer cross-platform plan (only works on windows xp
fine also).
qprocess p; p.start(adbbinarypath(), {"forward", "tcp:xxport", "tcp:xxport"});
to run adb can utilize qprocess. note need compiled adb binary each windows , linux platforms.
android qt
No comments:
Post a Comment