On some paint events, Qt outputs several warnings in the console: “QPainter::begin: Painter already active”
I would like to disable this particular warning because it clutters the Output window and I’m not planning to fix it. How can I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only way to do it is to remove it from the Qt sources and recompile them. But it would be much easier and reliable to just fix the cause.
P. S. Actually, as noted in the other answer, it is possible to install an msg handler and filter out that particular message by calling strcmp(), but that’s both ugly and not very reliable – if the message is altered in any future version, it will start appearing again.