Solved Qt 6++ Bluetooth Pairing
-
Info: bluetooth-changes-qt6
The pairing agent related API was removed without replacement. This includes pairingConfirmation(bool), pairingDisplayPinCode(..) & pairingDisplayConfirmation(..).
I would like to know:
-Why it has disappeared
-Even though it says there is no replacement. If there is any alternative way.Thanks :)
-
Why it has disappeared
The reasoning is given in the very same paragraph you cited :)
Except for Android and BlueZ 4 there was never an implementation for it. Bluez 4 support was removed in Qt 6 and Android's implementation required unobtainable BLUETOOTH_PRIVILEGED for at least parts of the code.
Even though it says there is no replacement. If there is any alternative way.
Well, you can always use the API of the platform you are targetting.
-
This post is deleted! -
@kkoehne Hello! Sorry for the late response.
I've been thinking on that. Finally i was able to wrap a cppwinrt object into a qt object class to emit a signal when an async call finishes on windows.
Do yo know if there is any plan to port this windows bluetooth features to native qt features? It will be a lot easier for sure jajajsj
-
Bluetooth has always been treated as SHIT by Qt/kde
Qt lacks ( and always has lacked ) proper implementation of BT.