i should probably restate the problem and be a bit more clear..

my goal is to generate a maya float slider using the pymel
floatSlider() command, in a subclass of an interface created in qt
designer (and then pyuic4.. not using "loadUI").
i want to be able to treat this slider like any other QObject..
placing and attaching it into a QGridLayout in my QT interface, and
connecting its signals to
functions within my subclass. (whether by signals and slots or by the
callback functions of the floatslider() command itself..not sure)

my problem is that i do not know how to get the QObject that
represents the maya floatSlider so that i can do all these things to
it.
the object that is returned by pymel does not seem to allow QObject
functions. (not a QObject?)

am i missing something simple?
i am very new to qt and pymel..
its likely just newb-ism.
just needed a little help.

thanks.

On Nov 5, 5:02 pm, mtherrell <[email protected]> wrote:
> i am using pymel 1.0 in maya 2011.
> i am using QTDesigner to create my interface base class.
>
> unfortunately, (and surprisingly) QT does not have a float slider. so
> i need to make my float slider in my subclass of my qt interface using
> pymel. ( prefer not to make an intslider powers of ten bigger than my
> desired float range in order to approximate a float slider in QT.)
>
> (i am using pyuic4 to emit my interface as a .py then i subclass
> that .py)
>
> 1. are there any examples of creating a floatSlider using pymel, and
> then laying it out in an already existing qt layout?
>
> 2. how do i get the QObject that results from creating a floatSlider
> so that I can connect its signals using qt?
>
> 3. is it better to use qt signals  to connect the floatSlider to my
> functions or better to use the mel 'dragCommand' conventional callback
> system somehow?
>
> thanks for any help on using pymel floatSlider inside a qt layout..
>
> -mark therrell

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to