Unfortunately, not every single widget in Qt has a Maya equivalent during
the loadUI operation.
>
> Some Qt classes have equivalents in Maya. If a widget's class is
> recognized, the Maya-equivelent will be created instead.
If you run this command, it will show you what Maya will recognize:
cmds.loadUI(listTypes =True)
The QTabWidget, not being in that list, simply comes across as a generic
control:
cmds.objectTypeUI("tablayoutwidget|tabWidget")
# Result: control #
This means really all you can do with it from the Maya UI commands is use
the cmds.control()
It would require that you use Qt/PyQt to get all of the QTabWidget
functionality exposed to you.
... as far as I know.
-- justin
On Thu, Dec 6, 2012 at 3:57 PM, Cosku Ozdemir <[email protected]>wrote:
> Hi there,
>
> I'm creating a UI in Qt Designer:
> http://dl.dropbox.com/u/6445129/tablayout.ui
>
> And then loading it into Maya like so:
> http://pastebin.com/hFRGyf9c
>
> How can I switch tabs (through python) after the UI is loaded?
>
> Thanks!
>
> -c
>
> --
> 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