I would like to know if it's possible to get a file's path by dragging it and dropping it inside a window made with PySide6. If not, how would I got about reading its bytes (in case of images) or its contents (in case of txt).
I did not try anything yet because I'm having trouble just understanding the documentation. I saw that it maybe has something related to these (https://doc.qt.io/qtforpython-6/overviews/dnd.html) but I couldn't really understand what I'm supposed to do.