diff options
author | scratko <m@scratko.xyz> | 2025-08-03 02:28:24 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2025-08-03 02:56:54 +0300 |
commit | ef8a3f6c3e20178ee520f1e6bedbc866e3c9b490 (patch) | |
tree | cbdea78c5c54e5dda4a8eb9c8a0d42091a27448c /lineEdit.h | |
download | artifical-text-detection-ef8a3f6c3e20178ee520f1e6bedbc866e3c9b490.tar.gz artifical-text-detection-ef8a3f6c3e20178ee520f1e6bedbc866e3c9b490.tar.bz2 artifical-text-detection-ef8a3f6c3e20178ee520f1e6bedbc866e3c9b490.zip |
Diffstat (limited to 'lineEdit.h')
-rwxr-xr-x | lineEdit.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lineEdit.h b/lineEdit.h new file mode 100755 index 0000000..f03eec0 --- /dev/null +++ b/lineEdit.h @@ -0,0 +1,26 @@ +#ifndef LINEEDIT_H
+#define LINEEDIT_H
+
+#endif // LINEEDIT_H
+#include "QLineEdit"
+#include <QDragEnterEvent>
+#include <QMimeData>
+#include <QDropEvent>
+#include <QWidget>
+
+class Line_edit : public QLineEdit{
+
+ Q_OBJECT
+
+public:
+ explicit Line_edit(QWidget * parent = 0);
+ ~Line_edit(){}
+
+ //Метод события перетаскивания
+ virtual void dragEnterEvent(QDragEnterEvent* event) override;
+ //Метод события отпускания объекта с данными
+ virtual void dropEvent(QDropEvent *event) override;
+public:
+ //документ, загруженный через drag n drop
+ QString drop_document;
+};
|