Fixing error output messages to a QDialog like other widgets