Hi,

On 23/08/2018 13:30, maitai wrote:
Hello,

I have a problem with users equipped with an old version of Windows (8, or 7). The latest version of my app (Qt 5.11.1/MSVC 2017 based) required QtBluetooth but when users load the app they get a message saying:

"This Windows version does not support the required Bluetooth API. Consider updating to a more recent Windows (10.0.10586 or above)"

Then they press OK and the app shuts down.

I understand the message and have no problem removing BT functionalities for these users with old Windows versions, but my question is: can I avoid to build several binaries, i.e. is there a way not to load QtBluetooth if windows version is not recent enough ? Any other suggestion ?
The message is shown when the dll is loaded, so unfortunately I only see two other ways of working around the problem. 1) You could try to dlopen the library and lazy load all the functionality you need. That would mean, that you have to resolve every function though... 2) You could put your Bluetooth code into a plugin. If that fails to load, the application will not exit immediately, but only the plugin loading will fail then.

Thanks
Philippe.


BR,
Olli
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to