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()));
(...)
}
MazeField::MazeField( QWidget *parent, const char *name ) : QWidget( parent, name ) {
(...)
recordingTimer = new QTimer( this, "recordingTimer" );
connect(recordingTimer,SIGNAL(timeout()),this,SLOT(updateRecordingTime()));
(...)
}
To copy to clipboard, switch view to plain text mode
and in the same file, below:
void MazeField::updateRecordingTime() {
recordingTimerCount = (unsigned) time (NULL) - recordingTimerStart;
cout << "Recording time is " << recordingTimerCount << endl;
emit recordingTimeChanged(recordingTimerCount);
}
void MazeField::updateRecordingTime() {
recordingTimerCount = (unsigned) time (NULL) - recordingTimerStart;
cout << "Recording time is " << recordingTimerCount << endl;
emit recordingTimeChanged(recordingTimerCount);
}
To copy to clipboard, switch view to plain text mode
But this last bit doesn't seem to get reached, it doesn't even write the time...
Please help.
Mariane
Bookmarks