Unsolved Not able to catch signal from one class to another class
i have two classes "dltwindow" & "dltviewfiew".i have a button in "dltwindow" which onclick i am emitting one signal from dltwindow and trying to catch in dltfileview. The problem i am facing is dltwindow has a parameterized constructor which is giving function mismatched type error.I tried creating the object of dltwindow in dltfileview,since i dont have the arguments specified in the dltwindow constructor,i am not able to catch the signal emitted from dltwindow .Is there any otherway to do the same.
Any guidance is appreciated.
Pablo J. Rogina last edited by
@sapna if you could provide your code to better understand your issue...
@sapna said in Not able to catch signal from one class to another class:
I tried creating the object of dltwindow in dltfileview
??? No, just no!
just declare the slot as public in
dltviewfiewand add the
connect(this,/*signal from dltwindow*/,dltviewfiew,/*slot in dltviewfiew*/);to
Thank you for the reply.
I tried with this.But I am getting the following error: "expected primary-expression before ', ' token".
aha_1980 Lifetime Qt Champion last edited by
@sapna If you want us to help you, you will need to show the code that lead to this compile error. Also, do you have more compile errors? They might accumulate and then searching the root cause gets more complicated.