Not to belabor the point, I just want to make sure I understand... Is there a way to get pyQt handles to the objects created this way?
cmds.window returns a string, which must then be used by Maya's qt implementation to map to a qt widget. Does a python developer have any way of accessing this handle as well? On Thu, Mar 18, 2010 at 4:17 PM, John Creson <[email protected]> wrote: > Yes and Yes > > On Thu, Mar 18, 2010 at 6:10 PM, shawnpatapoff <[email protected]> > wrote: > > Just so understand it, > > > > cmds.window('myWin') > > cmds.columnLayout('myColumn') > > cmds.button('myButton') > > cmds.showWindow('myWin') > > > > Is the same but instead of using ELF it's now using QT under the hood. > > If this is the case, does that potentially mean more user end control > > than before? > > > > -shawn > > > > On Mar 18, 2:48 pm, Ofer Koren <[email protected]> wrote: > >> - "WIth PyQt or a C++ plugin, technically yes [embed maya qt widgets > within > >> a custom PyQt widget]" > >> - "You need pyqt or a c++ plugin to get at the qt objects themselves" > >> > >> How does that work exactly? can you show an example? > >> > >> - Oferwww.mrbroken.com > >> > >> On Thu, Mar 18, 2010 at 8:02 AM, Chris G <[email protected]> wrote: > >> > On Thu, Mar 18, 2010 at 4:21 AM, Ofer Koren <[email protected]> wrote: > >> > >> >> A couple of Maya 2011/Qt questions: > >> >> - Is it possible to embed maya qt widgets within a custom PyQt > widget? > >> > >> > WIth PyQt or a C++ plugin, technically yes, but how well this would > work > >> > would probably be case by case because maya qt widgets aren't designed > to be > >> > put into custom ui like that. There is a new command which will load > a qt > >> > designer xml file and create a maya qt ui based on it, that approach > might > >> > work better than creating a pure custom parent widget. What did you > have in > >> > mind? > >> > >> >> - Are the Qt methods/attributes of Maya widgets accessible from > python? or > >> >> is it still through string-based mel commands (where basic datatypes > are > >> >> passed around instead of actual Qt objects)? > >> > >> > No, it the same commands as before, just with qt implementation under > the > >> > hood. You need pyqt or a c++ plugin to get at the qt objects > themselves. > >> > >> > - chris > >> > >> > -- > >> >http://groups.google.com/group/python_inside_maya > >> > >> > > > > -- > > http://groups.google.com/group/python_inside_maya > > > > To unsubscribe from this group, send email to python_inside_maya+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > > > > -- > http://groups.google.com/group/python_inside_maya > > To unsubscribe from this group, send email to python_inside_maya+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- http://groups.google.com/group/python_inside_maya To unsubscribe from this group, send email to python_inside_maya+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
