make a static function in your class which will return the textedit pointer.

btw, this question belongs to the newbie/C++ section