This is a C++ issue. acrTb, created at line 30 in your dialog constructor listing above ceases to exist at the end of the constructor and this severs any connections made to/from it. You need to allocate it on the heap. It seems you do that at line 7, and it is that instance that you should connect.