Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QMimeData: hasUrls returns true but urls() is empty

    General and Desktop
    1
    2
    525
    Loading More Posts
    • 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
      Violet Giraffe last edited by

      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 Reply Quote 0
      • V
        Violet Giraffe last edited by

        Ideas anyone?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post