The code you posted should work ok.
Are you sure it crashes on t1->setText(str) and not later?
Could you show a bit more of the code before and after the lines you posted?
The code you posted should work ok.
Are you sure it crashes on t1->setText(str) and not later?
Could you show a bit more of the code before and after the lines you posted?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks