Hi,
I have implemented a piece of code in which i have called update() function to be called on a signal of a button clicked() ,some time the update() function is called and paintEvent() works but sometime without following and sequence it doesnt work ...its very surprising ..i have also inclucded some debug statements ,the code is posted below..any help would be appreciated ..!!

Qt Code:
  1. ..
  2. connect(button,SIGNAL(clicked()),training,SLOT(recognitionAccept()));
  3. ..
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. #include "Progress.h"
  2. #include "TrainNavigation.h"
  3.  
  4. void TrainingUI::recognitionAccept()
  5. {
  6. ..
  7. progress->showAcceptedProgress();
  8. ..
  9. navigate->enableNavigationButtons();
  10. }
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. void Progress::showAcceptedProgress()
  2. {
  3. qDebug() << "Show Accepted Progress "
  4. ..
  5. update();
  6. ..
  7. }
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. void TrainNavigation::enableNavigationButtons()
  2. {
  3. ..
  4. playButton->setDisabled(FALSE);
  5. ..
  6. }
To copy to clipboard, switch view to plain text mode 

both the function (i.e TrainNavigation::enableNavigationButtons() and Progress::showAcceptedProgress() ) are always called but in showAccepetedProgress ...
update() is called sometime ...