qprocess

    3熱度

    3回答

    我使用QProcess中執行ping命令檢查的主機在線或不... 的問題是退出代碼,我接收從Qprocess->完成信號總是2無論我ping一個可達主機或無法訪問一個.. 我一直在一個QTimer ping主機(其中一個文件夾我已經安裝在客戶端, Qt應用程序正在運行)... 當我捕獲退出代碼作爲ping返回的插槽連接到QProcess->完成信號..我總是收到退出代碼爲2 .. 我不能使用通過系

    1熱度

    1回答

    我一直在試圖把QX11EmbedContainer放在我的應用程序中,並且我需要在其中啓動一個終端(因爲使用konsolepart我幾乎可以不做任何事情)。 QX11EmbedContainer* container = new QX11EmbedContainer(this); // with or without "this" I got the same result container-

    3熱度

    1回答

    我使用一個WindowsXP的機內A簡單QProcess中項目: QString program = "U:\\ffmpeg.exe"; QStringList arguments; arguments << "-i" << "U:\\clock.avi" << "U:\\tmp_jpeg\\foo-%03d.jpeg"; process.setStandardOutputFile("U: