Qt 类似于tree结构的容器应该怎么设计
振星 2014-01-03 02:19:28 需要以下这样的数据类型
key0-->value0
-->otherKey0,otherValue0
-->otherKey1,otherValue1
-->otherKey2,otherValue2
key1-->value1
-->otherKey0,otherValue0
-->otherKey1,otherValue1
-->otherKey2,otherValue2
key2-->value2
-->otherKey0,otherValue0
-->otherKey1,otherValue1
-->otherKey2,otherValue2
函数需要传入传出该数组或者容器,应该怎么定影这样的参数?
如
QMap<?,?>或者其他?不考虑使用结构体之类
在线等。。谢谢