[問題] 關於QT分析網址的問題

看板C_and_CPP作者 (無聊的書)時間8年前 (2016/11/10 08:31), 編輯推噓1(102)
留言3則, 3人參與, 最新討論串1/1
開發平台(Platform): (Ex: Win10, Linux, ...) vc2010 編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出) vs2010 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 餵入的資料(Input): http:\\172.16.160.2:80\cam\realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif 預期的正確結果(Expected Output): 我使用QUrl qurl qurl.host()可以得到172.16.160.2 qurl.port()可以得到80 這都沒問題 但是 qurl.path() 卻只有得到\cam\realmonitor ?號之後的得沒有 我查一下還是查不到有啥可以得到全部 \cam\realmonitor?channel=1&subtype=0&unicast=true&proto=On 不好意思 我也是可以自己分析不過還是問一下 錯誤結果(Wrong Output): 程式碼(Code):(請善用置底文網頁, 記得排版) 補充說明(Supplement): -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.251.70.82 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1478766673.A.4A0.html

11/10 16:57, , 1F
?後面是parameter
11/10 16:57, 1F

11/10 17:18, , 2F
queryItems
11/10 17:18, 2F

11/10 17:32, , 3F
11/10 17:32, 3F
文章代碼(AID): #1O931HIW (C_and_CPP)