I am implementing run time menu on a button(QPushButton) in my app user has to make choice between ftp and http when he click on upload button.
QMenu menu(this);
menu.addAction("ftp");
menu.addAction("http");
ui.mUploadBtn->setMenu(&menu);
ui.mUploadBtn->showMenu();
My ques is that how could i know which selection user selected or is their any function to get that.
thankyou