Qt 6.5 FTP access (with SCXML); Permissions on Windows needed?
-
I understand that Qt 6 doesn't support FTP directly. But I have managed to use the SCXML module to access my FTP site. I am able to download files successfully.
My issue arises when I try to run my Qt App outside the Qt environment (Outside Qt Creator). When I try to run the App(.exe) in the release folder, it runs fine. But when I try to access the FTP function within the App, the App crashes.
It seems like my app is missing permissions introduced by Qt 6.5.
I looked at the Available Permissions in Qt 6.5 and there are the following permissions but none to do with Internet/FTP permissions:
- QBluetoothPermission
- QCalendarPermission
- QContactsPermission
- QCameraPermission
- QMicrophonePermission
- QLocationPermission
Permission APIs in Qt 6.5 talks about permissions but not for Windows.
How does one manage permissions with Windows with Qt 6.5?
-
@sidthatsme I don't think you need to request any permissions on Windows.
If your app is crashing then you should debug it. At least start it from a terminal to see whether there are any error messages printed. You can also inspect Windows event log (in mmc.exe) after the crash. -
@jsulm Thanks for the advice!
I found the solution in this forum: https://forum.qt.io/topic/134540/warning-ecmascriptdatamodel-plugin-not-found-after-deployment
I was missing dlls which the windeployqt didn't add automatically.
I'll mark this as solved
-