@J.Hilk I found out what my problem was. My two slot are excuted. The problem was that it didn't pass a certain condition in the second slot. My problem is solved. Thank you for your responses.
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.