为什么我不能将文件拖放到Qt示例中
Why cant I drop a file into the Qt Sample drop example?
我正试图将文件拖放到应用程序中以工作,因此我编译了该示例,但每次尝试拖放文件时,我都会得到"不允许拖放"符号。我也在自己的示例中尝试过这一点,在调试模式中,我发现甚至没有实现任何函数(dragEnterEvent、dragMoveEvent、dropEvent)。这里有什么问题/我该怎么解决?
此外,在Win7 x64 上运行Qt 4.8
我发现了问题:您无法从未升级的应用程序(explorer.exe)拖放到升级的应用。
感谢@HansPassant的解决方法:添加一个清单文件:
<?xml version="1.0"encoding="UTF-8"standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1"manifestVersion="1.0"><trustInfo xmlns="urn:schemas-microsoft.com:asm.v3"><安全><requestedPrivileges><requestedExecutionLevel level="asInvoker"uiAccess="true"/><requestedPrivileges><安全><trustInfo><组装>
此清单要求"uiAccess"为true,并要求exe受信任和签名。
注:中提出的解决方案http://helgeklein.com/blog/2010/03/how-to-enable-drag-and-drop-for-an-elevated-mfc-application-on-vistawindows-7/使用CCD_ 1不起作用。
相关文章:
- 在特定区域拖放 | Qt
- Qt - 在QGraphicScene中拖放时如何从项目中获取文本?
- Qt 模型拖放 - 无法保存类型 QJsonValue
- Qt拖放在窗口中工作.我可以做到我只能放入Qlabel而不是整个窗口吗?
- 如何使用拖放功能和点击信号函数QT创建标签
- 如果使用Qt::DecorationRole,则在拖放时崩溃
- 信号流像Qt中的Simulink一样拖放
- Qt - 拖放 - 自定义图形场景 - 事件错误
- QT - 拖放 - 在自定义场景上创建自定义图形对象的位置
- Qt 拖放,限制为子矩形
- 需要解决哪个类以支持Qt应用程序和查找器之间的拖放
- 为什么Qt中的拖放停止工作
- 在Qt中拖放多个对象
- Qt网格与QgraphicsItems拖放
- qt在qcraphicsScene中拖放
- Qt,C++:QListWidget内部拖放 - 如何连接到信号?
- qt QAbstractItemModel 拖放用于移动项目执行删除/插入
- (Qt或其他)拖放数据的mime类型的uri-list与协议http或ftp在Windows桌面或explorer.ex
- Qt拖放-改变图像显示,而拖动
- 拖放Qt:知道目标应用程序悬停-是可能的