Unsafe method: if you use setText before this->text initialization or this->text size is less than text you will get an runtime error