I could be wrong, but I don't think the Qt Designer -> Maya command bindings are that robust. For the widgets that Maya can translate to native UI, you can use the dynamic properties with +<command> and the command string as the value. There does not seem to be any support for QActions (of a menu), and if the QMenu works at all, you could only use the command that gets called when the menu is about to be shown. This means you would have to do the work of looking up that menu, iterating through the actions, and making the connections. So all in all, it's more trouble than it is worth. If you are already using PyQt, I recommend not using the designer for anything at all beyond layouts, and eventually, just ditching designing altogether and setting up your UI in code. It makes the process much easier and gives you the most control.
On Wed, Dec 26, 2012 at 8:06 AM, Rishis3D <[email protected]> wrote: > Hi > > i have created a ui file form qt Designer , and i want to connect a > command to that menu items form file menu.. i know can convert tat ui into > python and using QtCore.SIGNAL('triggered()') to assign a command.. but > some reason i want to do tat in an ui file > > thanks > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > > > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected].
