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

作者: ahabook (無聊的書)   2016-11-10 16:31:09
開發平台(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):
作者: soheadsome (師大狗鼻哥)   2016-11-10 16:57:00
?後面是parameter
作者: shadow0326 (非議)   2016-11-10 17:18:00
queryItems
作者: MOONY135 (談無慾)   2016-11-10 17:32:00

Links booklink

Contact Us: admin [ a t ] ucptt.com