In what way does it behave differently at the moment? It looks like it docks successfully, and that the question is about how to detect when it is horizontally docked such that you can automatically hide your inner tabs? Also docking changed somewhat in Maya 2017, which version is this question regarding?
In all versions of Maya, a dock uses the QDockWidget <http://doc.qt.io/qt-5/qdockwidget.html#allowedAreas-prop> under the hood, maybe that has got some clues for you. Other than that, if you are able to dock it and simply wish to discard the tabs when the widget it below a certain height, maybe you could add a resizeEvent and from there determine whether it is below that height and show/hide the tabs accordingly. On 15 July 2018 at 17:43, Kim Strandli <[email protected]> wrote: > Hey, all! > > Is there a special trick to creating a custom dockable toolbar that > behaves the same way as the StatusLine, CommandLine and those top/bottom > toolbars? > It docks perfectly fine everywhere else, using either Qt or the MayaMixin > method, but I wish to not have the tab visible when docked as a toolbar. > > It's a small utility, which is why I'd prefer docking it next to an > existing toolbar, rather than the whole bottom of the UI using DockControl > > Any ideas? > -K > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/1e2bc976-7c5b-403b-a4e1- > 2000970a43ce%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/1e2bc976-7c5b-403b-a4e1-2000970a43ce%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBacqn55fZ83z%2Bw-CuD8ooaS8wXb-VWTw7s6AMRGL4hBg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
