Ok.. here is the code of the function which gets called on button click from the toolbar.

Qt Code:
  1. void CMainWindow::OnNextPipelineAction()
  2. {
  3. m_pipeline_stages.HighlightNextStage();
  4.  
  5. QString s = QString("PL %1").arg(m_pipeline_stages.m_current_stage_number);
  6. nextPipelineAction->setText(s);
  7. nextPipelineAction->setToolTip(m_pipeline_stages.GetCurrentStage().RowsCovered());
  8. nextPipelineAction->setStatusTip(m_pipeline_stages.GetCurrentStage().RowsCovered());
  9.  
  10. QCoreApplication::processEvents();
  11. update();
  12.  
  13. }
To copy to clipboard, switch view to plain text mode 

Here I am setting the text, tooltip and statustip of the button. I want that as soon as the button is pressed, the updated tooltip and statustip are displayed immediately.

the processevents and update are not helping in this regard. What am I missing