QPainter' object has no attribute 'drawControl
时间: 2023-10-10 22:13:39 浏览: 67
As an AI language model, I cannot see the code you are referring to, but the error message "QPainter' object has no attribute 'drawControl" usually means that you are using a method or attribute that does not exist in the QPainter class.
One possible reason for this error is that you are using an outdated version of PyQt or PySide. Try updating your PyQt or PySide module to the latest version available.
Another reason might be that you are using an incorrect method or attribute name. Double-check your code and make sure that you are using the correct method or attribute name.
Finally, it's possible that the error is caused by a typo or syntax error in your code. Check your code carefully for any mistakes and fix them as necessary.
阅读全文