Hello. If I, in QPainter :: DrawText, pass a QString created right among the arguments passed as shown below:
void func(){ for(int i=1; i<=l;i++) qpainter_prt->drawText(1, 1, 1,1, Qt::AlignLeft, QString("%1").arg(i)); } Then: Is the QString destructor called immediately after calling the QPainter :: DrawText function? 2 - Is the destructor called after func () ends? 3-if QString destructor is called and the object is destroyed, how will QPainter draw it?