How do I retrieve a long file path from a drag-and-drop operation on Windows, using Qt? Qt erroneously returns an empty array
Maybe I’m doing this wrong but if so I’m not sure how. Qt normally provides a QMimeData
object for a drop event, which will contain the URLs of any associated files. On Windows, when such a file is long, exceeding the 260 character MAX_PATH
, Qt seems to choke. hasUrls
will return true, but the URL list will be empty. Internally I can see that it fails to grab the data with the COM function returning ERROR_INSUFFICIENT_BUFFER
.
I want to make apps using C++
I am starting on C++ and have done DSA and logic building thoroughly, I have no idea on how to make real life app using C++. I want to start what do you guys recommend I start with ?
Giving application window active focus when opening a file
In the documentation for QWidget::activateWindow() function, the following is said: