Drag and drop with Qt: Knowing target application on hover - is it possible?

前端 未结 2 1841
野性不改
野性不改 2021-02-18 13:43

I\'m currently exploring the possibilities of drag-and-drop from a Qt application, into an unknown target application. The question is whether it is possible for the Qt applicat

2条回答
  •  耶瑟儿~
    2021-02-18 14:14

    You can add several data types to your drag mime data. While creating dragable data you can put image and points data (with proper mime-type) and each application will decide what data it accepts and how to interpret it.

    For more details check https://doc.qt.io/qt-5/dnd.html#dragging

提交回复
热议问题