You are also ignoring the warning messages in your program output that will be telling you that there is no slot named pbScanUpdate().