daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest May 16th, 2018 90 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
Top