about QMimeData::hasImage() ?
-
i want to know about this API,
how many image format are surpportted by this API?
and the same question on hasUrls(), hasXXX...etc.
thank you
-
@opengpu2
It doesn't check the image format, It just checks the mime type instead(application/x-qt-image). you can see the source code here and here.
That means once you call the setXXX method, the hasXXX method return true.if you mean QImage, image format it support is list here.
-
thank you.
but i didnot setXXX ..
i just check hasUrls in the dropEvent...
i drag a file or dir from the other app or the desktop to my Qt app.
-
@opengpu2 said:
i want to know about this API,
how many image format are surpportted by this API?One. It's
application/x-qt-image
i.e. QImage.and the same question on hasUrls(), hasXXX...etc.
How many formats a url supports? One. A url.