QFileSystemModel::dropMimeData does not copy files?

  • Hi all,

    I'm trying to copy files using
    @m_fileSystemModel->dropMimeData(QApplication::clipboard()->mimeData(), Qt::CopyAction, 0, 0, qobject_cast<QAbstractItemView *>(focus)->rootIndex());@

    but this function always return false which means that the file is not copied, note that this function works perfectly if i passed


    I'm using Windows.
    Can any body help, please?

  • Hello,

    I have very similar problem too .
    I use method:
    @bool QFileSystemModel::dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent )@

    to copy/move files and directories. It works in all cases (copy/move single files and moving directory) except copying directories from one location to another (names are unique).

    I have no idea what's wrong...

  • I have noticed that there are some differences between source files in Qt versions. I'm using Qt 4.8.2 under Linux.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.