fixed bug with initializing QString with a pointer.