hi,

i had written an application in which i use drag and drop concept.in that use dragCopy for dragging the items. but i need move the item itself instead of copying. i tried using dragMove() function instead of dragCopy(). but i could not move the item. the following is my code:

Qt Code:
  1. class drag : public QLabel
  2. {
  3. public:
  4. drag(QWidget* parent=0, const char* name=0);
  5. protected:
  6. void mousePressEvent( QMouseEvent * );
  7. };
  8.  
  9. drag::drag(QWidget * parent,const char * name):
  10. QLabel(parent,name)
  11. {
  12.  
  13. }
  14.  
  15. void drag::mousePressEvent( QMouseEvent * a )
  16. {
  17. QDragObject *drobj;
  18. if ( pixmap() )
  19. drobj = new QImageDrag( pixmap()->convertToImage(), this );
  20. drobj->dragMove();
  21. }
To copy to clipboard, switch view to plain text mode 

is this correct ? if no means can anyone correct me ?

thanks in advance,