I have a groupbox with few Icon Buttons, it has to be displayed as a popup menu when clicked on the ToolButton. How can I do this in Qt?
I have connected the Click to a Function:

connect(ui.toolButton_29, SIGNAL(clicked()),this, SLOT(openDialog()));

Class::class()

ui.groupBox->hide();

void Class:: openDialog()
ui.groupBox->show();

The GroupBox is displayed when the ToolButton is Clicked but it is shown Under other widgets. I ant it to be displayed at the top of other widgets. I would be really glad to seek help.

Thank you in Advance!