Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道 QtGraphicalEffects 现在是商业 qt 版本。但根据文档,我可以通过 Qt5Compat 访问一些组件,如“ColorOverlay”。使用 c++,我QT += qt5compat 在 project.pro 文件中添加了它,它可以工作。我怎样才能在python中做同样的事情。我想将 QtGraphicalEffects 与 qml 和 qt 用于 python。
QT += qt5compat
通过使用 PySide2,我能够解决这个问题。我认为它还没有移植到更多的版本中。