开发者

Qt Dropsite Example

In QtDemo there is an example called Dropsite in which an image can be dragged and dropped into the field to be displayed. This example used to work in an older version of Qt and works initially in 4.6 if you run it from qt\examples\draganddrop\dropsite\release folder. But if you load the project file into Qt Creator and recompile it, it no longer displays the image correctly and gives a generic image in the box. I cannot figure out how to fix this and I need to use drag and drop in a project I am workin开发者_JAVA百科g on. Please help. Thank you.


Drag and drop an image into the drop area, you'll not able to get "application/x-qt-image" in minedata since Qt4.6. But if you drag&drop an image from web page, you'll still be able to see the image. I think it's reasonable for drop area to check if the dropped file is an image or not, instead of depending on mine data.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜