Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Looking for the class name of a specific QWidget (with no tab)

2 REPLIES 2
Reply
Message 1 of 3
AlexisVaillant
266 Views, 2 Replies

Looking for the class name of a specific QWidget (with no tab)

Hi all,

I used most of the time the "MayaQWidgetDockableMixin" class along with QtWidgets.QDialog to have a dockable dialog widget. But this one comes with a tab when docked.

class MainDialog(MayaQWidgetDockableMixin, QtWidgets.QDialog):
    def __init__(self, parent=MayaWindow()):
        super(MainDialog, self).__init__(parent)
        # Stuff

ui = MainDialog()
ui.show(dockable=True)  

AlexisVaillant_0-1653828149865.png

It gives the outliner kinda dialog (on the right), but I'm looking for the Toolbox style(on the left).

 

Do you guys have any idea how to call that kind of dialog ?

Thanks

2 REPLIES 2
Message 2 of 3

Can't find anything on google or in the doc... anyone ?

Message 3 of 3

I digged a bit in MayaQWidgetDockableMixin and when an object is set to dockable (as in object.show(dockable=True)) that object becomes a QStackedWidget that itself is child of QTabWidget. That operation is achieved by addWidgetToMayaLayout from OpenMayaUI when set to dockable.

So… I don’t think there is such a thing as non stackable MayaQWidgetDockableMixin object. I’ll have to make my own I guess.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report