[问题] 关于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