Hi all!
I have a class for the main window, class A and class B, which inherits from class A:

Qt Code:
  1. MainWindow::MainWindow(){
  2. ...
  3. A a;
  4. connect(&a, SIGNAL(remoteSignal(bool)), this, SLOT(updateStates(bool)));
  5. a.start();
  6. B b;
  7. connect(&b, SIGNAL(remoteSignal(bool)), this, SLOT(updateStates(bool)));
  8. }
  9.  
  10. A::A()
  11. {
  12.  
  13. }
  14. void A::start(){
  15. emit remoteSignal(true)
  16. }
  17.  
  18. B::B()
  19. {
  20. A::start();
  21. }
To copy to clipboard, switch view to plain text mode 

If I call the start method from object b for the parent class, there will not be any connections configured. How can I customize them?
Thanks!