Do you want the button to do a normal popup menu on left click, or a context menu that happens only on right click? For normal popup: http://doc.qt.digia.com/qt/qpushbutton.html#setMenu For context menus: http://doc.qt.digia.com/qt/qwidget.html#contextMenuPolicy-prop
On Dec 4, 2012, at 4:48 AM, Rishis3D <[email protected]> wrote: > ok guys its working > > now i want to create a popupMenu for a Particular QpushButton with some menu > items, like maya popupMenu() command? > > how do i add tat? > > thanks > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
