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. QMimeData: hasUrls returns true but urls() is empty
QtWS25 Last Chance

QMimeData: hasUrls returns true but urls() is empty

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 669 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.
  • V Offline
    V Offline
    Violet Giraffe
    wrote on last edited by
    #1

    I have my QStandardItemModel descendant with mimeData() implemented. It works great for drag and drop. But oddly enough, when I do

    @ QApplication::clipBoard()->setMimeData(_model->mimeData(...)) @

    and then

    @_model->dropMimeData(QApplication::clipBoard()->mimeData(), Qt::CopyAction, 0, 0, QModelIndex());@

    the QMimeData object returns true for hasUrls(), but urls() is empty. What's the problem?
    This is on Windows.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Violet Giraffe
      wrote on last edited by
      #2

      Ideas anyone?

      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