Add drag and drop feature to the DocumentViewer example


Add the possibility to drag and drop files directly on the
DocumentViewer to open them, instead of relying solely on the open
button from the menu.

Pick-to: 6.12 6.11 6.8
Change-Id: I8ee828f5944fa23ab27266fd30146b931e9b583c
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
commit3e3b07dc86b917906c0da01b9dd900ccdcc17d4f
parent1053ab94104dc46f880a58c327c216c59c1e39ca
authorFrédéric Lefebvre <frederic.lefebvre@qt.io>
committerFrederic Lefebvre <frederic.lefebvre@qt.io>
commit timeSat, 6 Jun 2026 15:44:26 +0000