Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. about QMimeData::hasImage() ?

about QMimeData::hasImage() ?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    opengpu2
    wrote on last edited by
    #1

    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

    MayEnjoyM Chris KawaC 2 Replies Last reply
    0
    • O opengpu2

      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

      MayEnjoyM Offline
      MayEnjoyM Offline
      MayEnjoy
      wrote on last edited by
      #2

      @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.

      I am a engineer.

      1 Reply Last reply
      0
      • O Offline
        O Offline
        opengpu2
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • O opengpu2

          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

          Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by Chris Kawa
          #4

          @opengpu2 said:

          i want to know about this API,
          how many image format are surpportted by this API?

          One. It's application/x-qt-imagei.e. QImage.

          and the same question on hasUrls(), hasXXX...etc.

          How many formats a url supports? One. A url.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved