Results 1 to 2 of 2

Thread: drag and drop

  1. #1
    Join Date
    Mar 2006
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default drag and drop

    Hi All

    I am vijay. using Vs 2005 with Qt 4.1. I am working on drop and drop operations.

    initialy i am having one main layout which is horizontal layout.

    After that i create four Vertical box layouts it contains label and text box each one.

    and i create four frame windows and i attach frame window with vertical box layouts.

    and i finallly attach main layout with frames. these things are ok. But the problem is when

    we drag one label pixmap , the copy of pixmap is coming from the top left corner instead

    of coming under mouse cursor.

    That' is it plz reply me asap

    I belive that i will get better solution from you people

    thanks and regards
    vijay

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: drag and drop

    I don't exactly know what you mean, but I guess you want to change the hotspot of the dragged item. You can do it with QDrag::setHotSpot().

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.