back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/lineEdit.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2025-08-03 02:28:24 +0300
committerscratko <m@scratko.xyz>2025-08-03 02:56:54 +0300
commitef8a3f6c3e20178ee520f1e6bedbc866e3c9b490 (patch)
treecbdea78c5c54e5dda4a8eb9c8a0d42091a27448c /lineEdit.h
downloadartifical-text-detection-ef8a3f6c3e20178ee520f1e6bedbc866e3c9b490.tar.gz
artifical-text-detection-ef8a3f6c3e20178ee520f1e6bedbc866e3c9b490.tar.bz2
artifical-text-detection-ef8a3f6c3e20178ee520f1e6bedbc866e3c9b490.zip
Initial commit: added source code, resources and READMEHEADmaster
Diffstat (limited to 'lineEdit.h')
-rwxr-xr-xlineEdit.h26
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;
+};