这个问题以前在:
但似乎没有得到回应。在
我有一个格式化的文件路径数据集,如下所示:
hon_dev/Bob Dylan/Concept
hon_dev/Andromeda/Modeling
hon_dev/Andromeda/Lookdev
hon_dev/Andromeda/Rigging
hon_dev/Andromeda/Animation
hon_dev/Andromeda/FX
hon_dev/fsafasfas/production
hon_dev/Magebane: Acheron of Mana Aeacus/Model
hon_dev/Magebane: Acheron of Mana Aeacus/Concept
hon_dev/Magebane: Acheron of Mana Aeacus/Texture
hon_dev/Skrull/Modeling
hon_dev/Skrull/Lookdev
hon_dev/Skrull/Rigging
hon_dev/Skrull/Animation
hon_dev/Skrull/FX
hon_dev/Bob Mylan/Modeling
hon_dev/Bob Mylan/Lookdev
hon_dev/Bob Mylan/Rigging
hon_dev/Bob Mylan/Animation
hon_dev/Bob Mylan/FX
hon_dev/Handsome Man/Concept
hon_dev/Handsome Man/Modeling
hon_dev/Handsome Man/Lookdev
hon_dev/Handsome Man/Rigging
hon_dev/Handsome Man/Animation
hon_dev/Handsome Man/FX
demo-sync/Drone Craft/Modelling Drone Craft
demo-sync/Drone Craft/Texturing and Shading of Drone Craft
demo-sync/Drone Craft/Rigging Drone Parts
我正试着让他们填满一个QTreeView(PySide)。我现在的代码就是这样,有一个简单的递归函数:
^{pr2}$但是,由于我找不到任何方法来查看QStandardItem中现有的行,因此我在UI中得到了以下结果:
有没有方法可以在QStandardItem中找到重复的行,或者遍历QStandardItemModel来查找现有的QStandardItem?在过去的两天里,我一直在努力解决这个问题,并试图找到一个现有的例子,我真的不知道为什么这会是一个如此复杂的问题。。。在
如有任何帮助/建议,将不胜感激!谢谢!在
嗯,经过一番吹毛求疵之后,我想出了一个暂时可行的方法,不过文件路径必须是这样才能工作的:
相关问题 更多 >
编程相关推荐