And finaaly let me add ( like Justin said ) that  all widgets names must be 
defined properly with setObjectName to avoid the menu not showing (but 
existing).

On Tuesday, February 5, 2019 at 7:16:45 PM UTC+1, Fransuzich wrote:
>
> Hello everyone,
>
> I can't figure out how to attach a maya popupMenu to a QlistWidget (or 
> QlistView).
>
> It works fine when i attach it to a QFrame for example, but nothing append 
> when calling it on a QlistWidget.
> My Pointer to the QlistWidget seems fine to me as it print 
> |||testListWidget (and ||frame0 when attaching on a QFrame, and working 
> inside hat Qframe).
>
> self.listWdtPointer  = long(shiboken2.getCppPointer(self.listWdt)[0])
>
> self.listWdtPointerFullPathName = 
> omui.MQtUtil.fullName(self.listWdtPointer)
>
>                 print self.listWdtPointerFullPathName* ---->  
> |||testListWidget*
>
>                 
> cmds.popupMenu(mm=True,parent=self.listWdtPointerFullPathName)
> cmds.menuItem(rp='N',l='Test')
>
> Has anyone ever experienced that issue ?
>
> Thanks
>

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/90906314-25aa-42d1-b844-ca80ca218ed3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to