Results 1 to 2 of 2

Thread: How can I use Drag and Drop For example Gear

  1. #1
    Join Date
    Feb 2008
    Posts
    36
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Default How can I use Drag and Drop For example Gear

    I have four position of gear as image.I Use label and I set pixmap of label as first position of gear. I want to move mouse or drag- drop and I want to bring second-third and four position of gear as image. How can I do this. Can you give an example

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: How can I use Drag and Drop For example Gear

    You can subclass QLabel and reimplement QWidget::mouseMove() event handler or use event filter.

    See: http://doc.trolltech.com/qq/qq18-mousegestures.html

Similar Threads

  1. Drag & drop with model/view (Qt4)
    By yogeshm02 in forum Qt Programming
    Replies: 16
    Last Post: 19th September 2011, 21:36
  2. Problem with a cursor during Drag and Drop
    By mtrpoland in forum Qt Programming
    Replies: 1
    Last Post: 28th December 2007, 16:46
  3. Strange behavior with Drag and Drop (not always drops)
    By Mona Shokrof in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2007, 19:00
  4. Replies: 7
    Last Post: 8th September 2006, 17:19
  5. Drag and drop revisited
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 30th June 2006, 17: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.