I have this code. I think this has to work in theory. It compiles and runs but no change in text. Whats the problem in my code? If i qDebug the label's text at p it gives me the correct value but after I set the text of label(p) it won't change. Why?
Qt Code:
QString text; for(int p= 1; p < lenPcm; p++){ text.setNum(p/freq); xscale->label(p).setText(text); } ui->qwtPlot1->replot();To copy to clipboard, switch view to plain text mode
Thanks in advance!
Bookmarks