Hi all

I want to use the funtion srand(time(0)) to generate random numbers but I am getting an error message that time is not declared in this scope, please help.
I also have two QPushButtons "OK" and "Cancel", there is no differenve between clicking on the OK and Cancel buttons. I used a slot to connect to this the code is as follows: connect(cancelButton, SIGNAL(clicked()), this, SLOT(close()));