Thank you for your contribution,
I think you are right. When I started the program found that the constructor of the class "mInterface" was called 3 times so 3 different instance of mInterface. once by calling the class Mainwindow + once by calling the class Readform and once by calling the class Form2. When i try with pointer by it is the same. I declared a pointer of mInterface in mainwindow, form2 and readForm for signals/slots-connection but nothing else happening only the same result.
How can i do that(to declare only one instance of mInterface )? can you give me a example?
thanks.
Added after 1 8 minutes:
it runs very well. Thank you very much for your help.
Bookmarks