Answer the question
In order to leave comments, you need to log in
How to implement Drag-and-drop in QPlainTextEdit?
Good afternoon! I would like to know if it is possible (if possible, with what and how) to implement Drag-and-drop text in QPlainTextEdit.
Answer the question
In order to leave comments, you need to log in
Of course it is possible.
Everything is detailed here:
doc.qt.io/qt-5/dnd.html
In short, catch QMimeData and check the hasText and hasHTML methods.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question