[問題] Qt 執行 ts_calibrate
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Embedded linux Qt
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
tslib
問題(Question):
我想要在Qt上按下button後執行ts_calibrate來執行觸控校正
在板子上單獨執行ts_calibrate是能夠執行的
但我在版子上想透過Qt執行就失敗了
我試過以下方式
1. system("ts_calibrate");
我Qt的畫面會卡住,沒有顯示5點校正的畫面
如果我按ctrl+c終止程式,在Terminal上會顯示 signal 2 caught
2. QProcess::execute("ts_calibrate");
這個結果會和1相同,按ctrl+c後顯示 signal 2 caught,然後Qt繼續執行。
3. QProcess proc;
proc.start("ts_calibrate");
執行會出現 QProcess: Destroyed while process is still running.
請問我應該如何才能正確執行程式
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 180.207.253.22
推
12/08 23:38, , 1F
12/08 23:38, 1F
→
12/09 01:09, , 2F
12/09 01:09, 2F
→
12/09 01:09, , 3F
12/09 01:09, 3F
→
12/13 15:40, , 4F
12/13 15:40, 4F
→
12/16 14:57, , 5F
12/16 14:57, 5F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章