|
1Qter豆
<?xml version="1.0" encoding="UTF-8"?>
<Shape>
<Plane>
<rect shapeid="1">
<penStyle>DashLine</penStyle>
<penWith>1</penWith>
<penColor>black</penColor>
<fillColor>white</fillColor>
<startPointF>(112,58)</startPointF>
<endPointF>(141,103)</endPointF>
</rect>
</Plane>
<Line>
我想获得其中的startpoint和endPoint两个点,我是先用Qstring str = "(112,58)";得到这个str,但我怎么将他直接转为QPointF或者QPoint???我接下来还要用到这个点,有没有其他方法??? |
最佳答案
查看完整内容
split str 获得112和58, 然后toInt即可
|