Qt:将拖放委托给父小部件的最佳方式
我必须做与这里相反的事情:
我希望子级小部件将其拖放事件委托给其父级。是否可以?
我的小部件看起来也像:
----------------------------------------
| Parent Widget |
| ------------------ |
| | Child Widget | |
| | | |
| ------------------ |
| |
----------------------------------------
父小部件支持拖放事件并且工作正常,但无法拖动子小部件。我希望所有子小部件将其拖放事件递归地委托给其父级。
谢谢!
I have to do the opposite of here:
Qt: best way to delegate a drag and drop to children
I want that a child widget to delegate its drag-and-drop events in its parent. Is it possible?
My widget looks like too:
----------------------------------------
| Parent Widget |
| ------------------ |
| | Child Widget | |
| | | |
| ------------------ |
| |
----------------------------------------
The parent widget supports drag-and-drop events and its works fine, but it doesn't work dragging over the child widget. I would like all the child widget to delegate their drag-and-drop events to their parents recursevely.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论