Thanks for your quick reply but i have done it via
showToolMenu->addAction("View", this, SLOT(on_button_file_Download_clicked()));
showToolMenu->addAction("Download", this, SLOT(on_button_file_View_clicked()));
ui->button_Show->setMenu(showToolMenu);
QMenu* showToolMenu = new QMenu(ui->button_Show);
showToolMenu->addAction("View", this, SLOT(on_button_file_Download_clicked()));
showToolMenu->addAction("Download", this, SLOT(on_button_file_View_clicked()));
ui->button_Show->setMenu(showToolMenu);
To copy to clipboard, switch view to plain text mode
but now i got stucked in a problem.
when i run this code, there is an arrow icon visible on button.
please let me know how to remove arrow icon from button.
Bookmarks