Not able to catch signal from one class to another class
-
Hi All,
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.
Thank you. -
Hi All,
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.
Thank you.@sapna if you could provide your code to better understand your issue...
-
Hi All,
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.
Thank you.@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
dltviewfiew
and add theconnect(this,/*signal from dltwindow*/,dltviewfiew,/*slot in dltviewfiew*/);
todltwindow