Possible to create something like a 3ds Max flyout?


#1

I would like to create something like a flyout or an icon menu in Maya. It’s a UI control that’s available in 3ds Max:
http://help.autodesk.com/cloudhelp/2015/ENU/3DSMax/images/GUID-62EF1765-A5D4-416E-93F5-FD0B86F2C46E.png

So basically a popupMenu with menuItems that contain a full-sized icon and no text.
The menuItem control cannot be used. If you discard the label flag it will call the control something like menuItem1234
Also, you cannot set the size of the icon - nor can you create a custom popupMenu with something like a gridLayout.

So does this mean that this is simply impossible?


#2

Using Maya’s native UI commands, I don’t believe this is possible. Have you considered looking at Qt/PySide? I imagine this is doable using Qt, but I haven’t done any digging to provide more guidance than that.


#3

I only did a quick search for Qt UI controls and there doesn’t seem to be anything like a flyout - but I could be wrong.


#4

Qt doesn’t have a flyout control out of the box. You would need to build it out of their base control/widget classes.

The following link isn’t strictly what you’ve asked for, but I think it would get you a good ways towards it:

http://forum.qt.io/topic/5266/qt-drop-down-button/2