I am a beginner programmer in C++ and doing a PoC for my company. So I apologize for my basic question.
class TestOne{
  private:
    TestTwo* t2;
  void createInstance(TestTwo* param){
    t2 = param;
  }
  static void staticFunctionToAccessT2(){
    // Now here I want to access "t2" here in the current instance of the class
    // By current instance I mean "this" in non-static context
    // currently there is no function to get object, but can be created
    // ** we cannot call new TestOne(), because that will create a new instance
    // ** of the current class and that I don't want.
  }
}
Any help in this regard will be greatly appreciated.
Thanks
===UPDATE===
This can be taken as a scenario in which I am developing an application in QT Creator, where I have a static function of predefined signature and want to access the UI elements for text change(like TextEdit)