I'm sorry, I thought it would be helpful if people saw the entirety of the code. I didn't know which part of the code I was lacking.
Ohhh. thank you for the instruction. I'll work on the changes.
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.