The invisible root item of a QTreeWidget is a QTreeWidgetItem and is the
equivalent to Maya's World. If an object in Maya has no parent, technically
it is a child of the World.
When you place one or more QTreeWidgetItems under the root item, they will
become visible in your tree as the first top level items. Then you can
continue nesting children under those child items.
Aside from that, I am not clear what the conflict is. Maybe you could
provide more context from the usage and the tutorial you are following?
 On Oct 17, 2013 6:23 AM, "Bay" <[email protected]> wrote:

> Hi Justin,
>               thanks for your input again. I'm just trying to see if I
> could adapt Yasin Uludug's tutorials into something I could use in Maya. A
> problem I found in the tutorial is that there's a need to specify a
> rootnode to parent all the items under and I'm trying to find a way around
> that (Since if I want to select something and add to the list, I want the
> selection displayed, rather than hidden as a parent). Would this be how I
> would use it?
>
>         self.treeWidget = QtGui.QTreeWidget()
>         self.rootNode = self.treeWidget.invisibleRootItem()
>         self._model=testtree.SceneGraphModel(self.rootNode)
>
>         I'm running into some errors right now but I want to try and see
> if i could resolve it first.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/8232a7c7-0ac2-4d08-a787-c7b05c418c43%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1TZL8TmKYeZKNzsO3-7wqnHVBETuBeXuptn6KPj95pAg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to