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.
本质上,问题是在主题中提出的。我有一些 plasmoid,当系统中出现辅助屏幕时,我需要处理该事件。
如果 Plasma 本身没有针对特定类型事件的 API,那么插件的 C++ 部分应该能够访问QGuiApplicationPlasma 进程并将插槽连接到其screenAdded(QScreen*)信号。
QGuiApplication
screenAdded(QScreen*)