Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture emitted signal in same class in Qt creator

Tags:

c++

qt

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?

like image 358
shivcena Avatar asked Nov 27 '15 07:11

shivcena


1 Answers

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

or

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

Follow the above methods and it is working

like image 166
Parviz Rozikov Avatar answered Oct 04 '22 02:10

Parviz Rozikov