java - 在linux下如何用代码实现把一个文件拖到一个指定的窗口中
大家讲道理
大家讲道理 2017-04-18 10:28:45
0
1
480

在linux下如何用代码实现把一个文件拖到一个指定的窗口中?求大神指教!

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
刘奇

This requires you to understand what happens when a file is dragged to a specified window. Then when you start thinking about this problem, you must know the process of the starting position of this file and the process of the specified window (this should be an application you are writing)

The effect of dragging a file from dolphin or nautilus may be different.

This question involves process communication and some standards for this communication body. I remember that Qt has the concept of MimeType. It is recommended that you look for similar software. If you find software that implements similar functions, you can refer to its source code.

(Related technology: drag and drop in Qt)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template