#ifndef DROPLINEEDIT_H #define DROPLINEEDIT_H #include #include class DropLineEdit : public QLineEdit { Q_OBJECT public: DropLineEdit(QWidget *parent = 0); protected: void dragEnterEvent(QDragEnterEvent *event); void dragMoveEvent(QDragMoveEvent *event); void dragLeaveEvent(QDragLeaveEvent *event); void dropEvent(QDropEvent *event); }; #endif // DROPLINEEDIT_H