I have simple callback functions that provides data to be shown on QT widget main form. As soon breakpoint reaches setText() I have exception Segmentation fault
:
void MainWindow::SetAmount(int value)
{
ui->tbAmount->setText( QString::number(value) );
}
Why I'm geting souch error? When I call SetAmount()
from button click it runs fine.