Your are perfectly right. Instead of calling connect() in the constructor, I called it on the function that displays data on the QTableWidget. I moved the connect() to the constructor and the problem disapeared!

Thank you very much!