Results 1 to 3 of 3

Thread: How copy a file to a directory with 2 QTreeViews using drag and drop

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How copy a file to a directory with 2 QTreeViews using drag and drop

    Quote Originally Posted by newbie43 View Post
    do i need to use somthin like QFile or does the QTreeView actually have ability to copy or move my source file to the destination?
    You have to use QFile::copy() or QProcess to call a "nativ" copy command. QTreView is only for representating a model and for nothing else.

  2. #2
    Join Date
    Jul 2010
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Maemo/MeeGo

    Default Re: How copy a file to a directory with 2 QTreeViews using drag and drop

    Thanks Lykurg

Similar Threads

  1. Replies: 0
    Last Post: 4th May 2010, 10:24
  2. Drag and Drop QTableWidget in UI file.
    By tpf80 in forum Qt Programming
    Replies: 3
    Last Post: 20th January 2009, 23:02
  3. Drag & Drop: delayed file delivery (Win & Mac)
    By Conel in forum Qt Programming
    Replies: 3
    Last Post: 19th September 2007, 16:01
  4. Drag-n-Drop with cut and not copy
    By KjellKod in forum Qt Programming
    Replies: 14
    Last Post: 18th February 2007, 11:57
  5. Replies: 4
    Last Post: 24th February 2006, 10:30

Tags for this Thread

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.