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)
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
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.