static MyClass test;MyClass::MyClass(.. ) { ... drawingRect(); // здесь точка останова}int main(int argc, char *argv[]){...}
C++ (Qt)class A : public QGLWidget{ Q_OBJECT friend class B;public: A(QWidget* parrent = 0); virtual void test();private: virtual QString drawingRect();};