I've just found the problem, but i'm not sure what has caused it.
In the new QT4 code (This is a port of an app from QT3 to QT4, that i've stared work on half way through).
The dialog had the following functions defined in the header :-
virtual bool event
( QEvent* Evt
);
virtual void showEvent( QShowEvent* ShwEvt );
virtual bool event( QEvent* Evt );
To copy to clipboard, switch view to plain text mode
and in the cpp file
{
}
bool myclass
::event( QEvent* Evt
) {
if ( Evt
->type
() == QEvent::Show ) {
/**
processing code, which I actually removed from here
so all it was doing was returning true.
**/
return true;
}
return false;
}
void myclass::showEvent( QShowEvent* ShwEvt )
{
QDialog::showEvent( ShwEvt );
QApplication::processEvents();
}
bool myclass::event( QEvent* Evt )
{
if ( Evt->type() == QEvent::Show )
{
/**
processing code, which I actually removed from here
so all it was doing was returning true.
**/
return true;
}
return false;
}
To copy to clipboard, switch view to plain text mode
why would this code stop my screen updating? since removing it causes everything to be ok.
Bookmarks