PySide6.QtGui.QPalette' object has no attribute 'Window'. Did you mean: 'window'?
时间: 2023-11-25 18:05:31 浏览: 368
pyside6学习记录pyside6-master.zip
The error message indicates that you are trying to access an attribute called `Window` on an object of type `PySide6.QtGui.QPalette`, but this attribute does not exist. The suggestion in the error message to use `window` instead is a hint that there might be a similar attribute with a different capitalization.
To fix this error, you should check the documentation for `QPalette` to see what attributes are available. If there is a similar attribute with a different capitalization, you can try using that instead. If not, you may need to revise your code to use a different approach.
阅读全文