Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QPixmap map(":/Medal.jpg");
- QIcon ico(map);
- ico.addPixmap(map);
- QPushButton *p = new QPushButton;
- p->setIcon(ico);
- QString link = "http://www.google.com";
- QObject::connect(p, SIGNAL(clicked()),window,SLOT(QDesktopServices::openUrl(QUrl (link))));
Add Comment
Please, Sign In to add comment