Re: Qt Bluetooth on Windows
Andrew Gillan <[email protected]> Tue, 12 May 2020 15:15:28 -0700
| Newsgroups | gmane.comp.python.pyqt-pykde |
|---|---|
| Message-ID | <CAMftBko5F=eKxHQhr6hB3Kq1GMNpWK5Q=A5BJQLAHveOevi85Q@mail.gmail.com> |
On Tue, 12 May 2020 at 13:56, Phil Thompson <[email protected]> wrote: > On 12/05/2020 21:32, Andrew Gillan wrote: > > With Qt 5.14 native Win32 support was added for Qt Bluetooth on > > Windows. > > See https://doc.qt.io/qt-5/qtbluetooth-index.html > > > > I believe this should allow the use of the bluetooth classes on Windows > > now > > as long the specified option, -native-win32-bluetooth, is used when > > compiling the shared library. > > > > When I tried to use the PyQt5.QBluetooth out of the box on Windows, it > > did > > not appear to work. Was the above mentioned option used to create the > > QBluetooth shared library. If not, can this be added or will I need to > > compile it myself? > > I don’t compile Qt myself, it’s taken from the online installer. > > Phil > Thanks Phil. I'll have to compile it myself as it defaults to UWP. From what I understand, Python targets the Win32 not UWP, so that is why this doesn't work out of the box. Andrew