daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest May 16th, 2018 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. QPixmap map(":/Medal.jpg");
  2. QIcon ico(map);
  3. ico.addPixmap(map);
  4. QPushButton *p = new QPushButton;
  5. p->setIcon(ico);
  6. QString link = "http://www.google.com";
  7. QObject::connect(p, SIGNAL(clicked()),window,SLOT(QDesktopServices::openUrl(QUrl (link))));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top