Mariane
2nd March 2006, 22:18
I have in the constructor:
MazeField::MazeField( QWidget *parent, const char *name ) : QWidget( parent, name ) {
(...)
recordingTimer = new QTimer( this, "recordingTimer" );
connect(recordingTimer,SIGNAL(timeout()),this,SLOT (updateRecordingTime()));
(...)
}
and in the same file, below:
void MazeField::updateRecordingTime() {
recordingTimerCount = (unsigned) time (NULL) - recordingTimerStart;
cout << "Recording time is " << recordingTimerCount << endl;
emit recordingTimeChanged(recordingTimerCount);
}
But this last bit doesn't seem to get reached, it doesn't even write the time...
Please help.
Mariane
MazeField::MazeField( QWidget *parent, const char *name ) : QWidget( parent, name ) {
(...)
recordingTimer = new QTimer( this, "recordingTimer" );
connect(recordingTimer,SIGNAL(timeout()),this,SLOT (updateRecordingTime()));
(...)
}
and in the same file, below:
void MazeField::updateRecordingTime() {
recordingTimerCount = (unsigned) time (NULL) - recordingTimerStart;
cout << "Recording time is " << recordingTimerCount << endl;
emit recordingTimeChanged(recordingTimerCount);
}
But this last bit doesn't seem to get reached, it doesn't even write the time...
Please help.
Mariane