PyQT - 复制文件到剪贴板

2024-04-26 18:13:54 发布

您现在位置:Python中文网/ 问答频道 /正文

是否可以将文件复制到剪贴板?
好像按下了“ctrl+c”。所以当我在某个文件夹中按“ctrl+v”时,它会出现在这里。

http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qclipboard.html-找不到有关文件的任何内容。

file = 'C:\foo.file'
clipboard = QtGui.QApplication.clipboard()
????

有可能吗?


Tags: 文件文件夹httpdocshtmlwwwstaticfile