Home  >  Q&A  >  body text

java - 在linux下如何用代码实现把一个文件拖到一个指定的窗口中

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

大家讲道理大家讲道理2741 days ago448

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-18 10:30:45

    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)

    reply
    0
  • Cancelreply