Unsolved How to drag an image to the wdget?
-
I wanna drag an image to the widget to load it just like many image application(e.g. PS), which makes things much easier. How can I achieve this function?
-
@Geng.Y
from where does the drag come from? From the filesystem or from another application?
Basically it is just a check for the mime-type. But also make sure to read about Drag-n-Drop in Qt. -
For example, from desktop .
-
@Geng.Y
then check out the link i've posted before and check for thetext/uri-list
mime-type or use QMimeData::urls() -
@raven-worx said in How to drag an image to the wdget?:
text/uri-list
Sorry,I don't understand this "text/uri-list"
-
@Geng.Y
did you finally read the link i've posted?!
do you understand what mime-types actually are?