开发者

How to Add this functionality to Qt 4.6 embedded linux QWS ( Qt Windowing System)?

开发者 https://www.devze.com 2022-12-15 13:36 出处:网络
I want to send an event to an Qt Application named \"Video Player\" from Qt 开发者_如何转开发Server when any of the running application \'s any widget gets Paint Event.

I want to send an event to an Qt Application named "Video Player" from Qt 开发者_如何转开发Server when any of the running application 's any widget gets Paint Event.

How to do it?


If you have access to the other applications and have DBus available on your device, I would suggest using it for this purpose. You can install an event handler in each of the other applications that emits a signal over DBus, and your video player application can subscribe to that signal and do whatever it needs to when it gets the signal.

I doubt that you'll be able to get paint events from the QWS, however. It probably just tells the given application what region/rectangle needs refreshed, and the application finds the appropriate widgets and sends them the paint events. I would be surprised if the QWS had any knowledge of the individual widgets in a given application.

0

精彩评论

暂无评论...
验证码 换一张
取 消