PDA

View Full Version : How can I use Drag and Drop For example Gear



validator
23rd June 2008, 12:36
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

jacek
24th June 2008, 23:58
You can subclass QLabel and reimplement QWidget::mouseMove() event handler or use event filter.

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