Hallo everyone,
ich have a little problem in my code:
i want to connect a button with a funktion that i defined in the main.cpp
but it does not work in this way
kann someone help me??
void playMe()
{
QSound s("C://test.wav");
s.play();
}
int main(int argc, char *argv[])
{
QPushButton *cover1 = new QPushButton;
QObject::connect(cover1, SIGNAL(clicked()), this, SLOT(playMe()));
}

Reply With Quote


