Ok.. here is the code of the function which gets called on button click from the toolbar.
void CMainWindow::OnNextPipelineAction()
{
m_pipeline_stages.HighlightNextStage();
QString s
= QString("PL %1").
arg(m_pipeline_stages.
m_current_stage_number);
nextPipelineAction->setText(s);
nextPipelineAction->setToolTip(m_pipeline_stages.GetCurrentStage().RowsCovered());
nextPipelineAction->setStatusTip(m_pipeline_stages.GetCurrentStage().RowsCovered());
update();
}
void CMainWindow::OnNextPipelineAction()
{
m_pipeline_stages.HighlightNextStage();
QString s = QString("PL %1").arg(m_pipeline_stages.m_current_stage_number);
nextPipelineAction->setText(s);
nextPipelineAction->setToolTip(m_pipeline_stages.GetCurrentStage().RowsCovered());
nextPipelineAction->setStatusTip(m_pipeline_stages.GetCurrentStage().RowsCovered());
QCoreApplication::processEvents();
update();
}
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
Bookmarks