shivcena
shivcena

Reputation: 2053

How to capture emitted signal in same class in Qt creator

In my Qt creator application im emitting a signal by calling a member function,

  void MyWidget::EmitSignal()
  {    
     emit Update();
  }

How to track the emitted signal while i call the member function?

Upvotes: 5

Views: 1647

Answers (1)

Parviz Rozikov
Parviz Rozikov

Reputation: 259

connect(this,&MyWdiget::Update,this,&MyWidget::SomeRecivedSlot);

or

connect(this,SIGNAL(Update()),this,SLOT(SomeRecivedSlot()));

Follow the above methods and it is working

Upvotes: 6

Related Questions