In my code I have the following function that updates a qlabel. The qlabel is updated very frequently. The code is
void foo::someMethod(std:atring a)
{
{//begin
boost::lock_guard<boost::mutex> lock(mutex_label);
frm->mylabel->setText(a.c_str());
}//end lock
}
And then after a while I get an assertion error:
assert failure in documentRect: "document rect called for label that is not a text label! , file widgets\qlabel.cpp
Any suggestions what might be causing it ? Also sometimes the value is never shown. I have to move the form for the values to be updated