1 2 3 4 5 6 7 8 9 10 11 | TrollFace::TrollFace(QWidget *parent) : QWidget(parent) { QPushButton *problemButton = new QPushButton( QApplication::translate("problemButton", "Problem, officer?")); problemButton->show(); connect(problemButton, SIGNAL(clicked()), this, SLOT(Troll())); QPicture image; image.load(":/img/troll.png"); QLabel *trollImage = new QLabel("Troll"); trollImage->setPicture(image); trollImage->hide(); |