How to create it in qt?
When you click on button - should be shown popup widget and its width should be = button width. And if main window (main form) drag to another place on the screen - popup widget should continuously follow the button (must be attached to the bottom border of the button).


Create widget, don't put it any layout, set it's parent to button's parent (lets call it "host"), set window flags to
Qt::Window | Qt::FramelessWindowHintOverride host's
resizeEventandmoveEventand adjust popup's geometry there using button's geometry.full source: button-popup