@AlexandruToma
first of, I'm glad that you were able to solve your problem, and also thanks for sharing the answer, not something everyone does.
If I already have all ui components created and styled in one window, it s like a reuse of code, I didn't copy/paste something from web, was my code and I knew what I am doing, when I move all ui components. I just miss that line because in c++ I didn't use that line.
You were not trying to help me here, just make fun of me as i copy and paste code. I understand there are many people doing this, but it s not fair to treat all of us like that.
to address this: I never said, nor assumed you copied anything from the internet.
you said:
when I added new window ... signal and slots stop working
and on the question
"Moved" in which way?
you answered:
I moved (ctrl+x) all components with their implementation from centralwidget(QMainWindow) into other window.
That plus the actual connect call, is all the information we have to go on with. That is not a lot of information. For example had you posted more code of your class in the opening post, @Pl45m4 or @JonB would have easily spotted the missing slots macro
Which by the way is a copy and paste error on your part.
And, had you, like we suggested, used the new Qt5 Signal/Slot syntax the problem would have gone away, as it does not require the slots macro any longer.
Btw, the Qt4 connect statement you used, should have provided the following message during runtime:
QObject::connect: No such slot Mainview::TextChanged() in ....
which would have been nice to know as well, as it would have made the error obvious.
If anything, take this with you:
Don't be discouraged to ask for or provide other in this forum with help.
If you ask a question, provide as much information as possible, ideally a code example or even better, a minimal compileable example. The more the better!
treat warnings as errors (-Werror)
Change over to the new signal/slot syntax, it makes life easier
Think positive 😄