I would like to suppress the error text in a console application. The errors are automatically printed when the Qt database driver encounters any SQL error. What I want to do is, display an user friendly message without the technical error shown. I’ve not found anything searching that comes close to addressing this.
Share
You can install a custom message handler with
qInstallMsgHandler(), but this is application wide. I’m not sure if that would give you enough control or not.Example: