Results 1 to 2 of 2

Thread: getting "QFile::rename: Empty or null file name" when dropping file to QTreeview

  1. #1
    Join Date
    Jul 2015
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default getting "QFile::rename: Empty or null file name" when dropping file to QTreeview

    Hi QT,

    I have QSplitter of which left side is Qtreeview for showing local system file using QFileSystemModel and right side have QWebview with html page where i am showing directory and file name line by line returning by some Api and i want to make drag and drop application. I have enable the all drag drop required function so its working internally on its own view. But i want to drag and drop between these two view , when i am doing its showing plus icon correctly but when dropping the file its showing
    "QFile::rename: Empty or null file name" in the console. So please help me i am very knew to QT.
    Thanks
    Last edited by ashish18; 22nd July 2015 at 14:46.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: getting "QFile::rename: Empty or null file name" when dropping file to QTreeview

    The QFileSystemModel has default behaviours for drops, which I expect is triggering the message you see. You will need to replace this default behaviour or make sure the dropped item carries suitable MIME data for a file system.

Similar Threads

  1. Replies: 3
    Last Post: 9th August 2011, 08:37
  2. Replies: 3
    Last Post: 15th February 2010, 17:27
  3. Replies: 3
    Last Post: 28th March 2009, 15:37
  4. Replies: 3
    Last Post: 8th July 2008, 19:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.