Results 1 to 10 of 10

Thread: drag and drop

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: drag and drop

    Quote Originally Posted by nupul
    How do I drag such an 'Icon' onto my QListWidget and still retain it's functionality? What happens to the associated .desktop file? All in all, how to manage such an "icon" drag which has a file associated with it?
    I really suggest you try the "dropsite" demo and look at data which you get when you drop a desktop file on it. Then you'll be able to answer that question yourself (especially when you also take a look at dropsite source files).

    P.S.: wysota had mentioned in one of his previous replies that KDE uses .desktop files and GNOME it's own infrastructure.....I forgot to clarify that the .desktop files are a specification standard put forth by freedesktop.org and expects that all desktop managers (DM) follow it. Thus Gnome or any other DM all use .desktop files for the same purpose!
    Don't say that any other Any other that implements it

    Just checked something... I don't think WindowMaker uses .desktop files. At least it doesn't allow any interaction with them (meaning you can't drop them on any wmaker object -- at least I didn't manage to).

  2. The following user says thank you to wysota for this useful post:

    nupul (10th April 2006)

Similar Threads

  1. Drag and Drop QTableWidget in UI file.
    By tpf80 in forum Qt Programming
    Replies: 3
    Last Post: 20th January 2009, 23:02
  2. drag and drop QToolButton in QToolBar
    By NBilal in forum Qt Programming
    Replies: 1
    Last Post: 28th December 2008, 20:11
  3. Change cursor & status during Drag & Drop
    By ronlongo in forum Qt Programming
    Replies: 0
    Last Post: 1st December 2008, 16:56
  4. Drag & Drop when parent and childs accept drops?
    By gri in forum Qt Programming
    Replies: 0
    Last Post: 17th October 2008, 09:00
  5. Drag and drop revisited
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 30th June 2006, 16:41

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
  •  
Qt is a trademark of The Qt Company.