Also in your code, it is useless to have msgBox, since you are actually calling message box thru one of the static functions of QMessageBox.
ya ... i got the mistake ... how stupid i am declaring a msgbox and using one of the static functions of QMessageBox. .. . and setting stylesheet to msgBox