Hi Todd,

Is self.openMenu being triggered?  Have you added debug prints to confirm?
The above looks correct so I guessing it's something in the connected slot
method, often the menu may be off screen or the actions not added correctly.

-Dave

On Wed, May 10, 2017 at 7:12 AM, Todd Widup <todd.wi...@gmail.com> wrote:

> I am trying to get a right click context menu working in a UI
>
>         self.treeView = QTreeView()
>         self.treeView.setContextMenuPolicy(Qt.CustomContextMenu)
>         self.treeView.customContextMenuRequested.connect(self.openMenu)
>
> self.openMenu is a small  menu that should open when right clicked on a
> tree item, but nothing is executed.
>
> any suggestions where to start looking
>
>
> --
> Todd Widup
> Creature TD / Technical Artist
> todd.wi...@gmail.com
>
> --
> 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/CABBPk35Qzm9%2Bhs3TKHiQkWXUCN45N2rgz%
> 3DM5ApYT-KwytsDNYg%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk35Qzm9%2Bhs3TKHiQkWXUCN45N2rgz%3DM5ApYT-KwytsDNYg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*David Moulder*
Technical Animator / Artist
squis...@gmail.com
*Professional Profile <http://uk.linkedin.com/pub/david-moulder/1/b12/b5a>*

Mobile: +44 (0)7814033242
See who we know in common
<http://www.linkedin.com/e/wwk/5748982/?hs=false&tok=3tztwkse1silw1> Want a
signature like this?
<http://www.linkedin.com/e/sig/5748982/?hs=false&tok=3pwLU9-mBsilw1>

-- 
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/CABD4PkREBAmpJobg%3D8FjMUvBRQW%3DKuMpBcbJZd9So%2B9xtHXKfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to