Skip to main content

Example creating a Python binding for Qt6 and C++ with shiboken

Project description

shiboken example

Example creating a Python binding for Qt6 & C++ with shiboken. Based on the shiboken examples.

Usage

Add the bindings to another project using uv:

$ uv add borco-shiboken-example
$ uv sync
...
+ borco-shiboken-example==0.0.4
+ shiboken6==6.8.1
...

Test the bindings were added and are usable (after activating the virtual environment created by uv sync):

$ python
>>> import borco_shiboken_example as x
>>> dog = x.Dog()
>>> dog.name = "Max"
>>> dog.bark()
Max: woof!
>>>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

borco_shiboken_example-0.0.7.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

borco_shiboken_example-0.0.7-cp312-cp312-win_amd64.whl (36.8 kB view details)

Uploaded CPython 3.12Windows x86-64

File details

Details for the file borco_shiboken_example-0.0.7.tar.gz.

File metadata

File hashes

Hashes for borco_shiboken_example-0.0.7.tar.gz
Algorithm Hash digest
SHA256 74d1b75195a67774b25812b3f6be171cd221d84c770e5439e8d24d0a0a57a2ae
MD5 f87d229fd8a57eaab02214b5dc01e4ce
BLAKE2b-256 a074d4f6f305171a1a2a036e37bad51998b2be13bb9a1c0b2acde88c1c025d00

See more details on using hashes here.

File details

Details for the file borco_shiboken_example-0.0.7-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for borco_shiboken_example-0.0.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3f72bb5025a201383f05bf46fabfbdcdc6f29bfdd4d7fbf0fd51406c9356fc85
MD5 4a204818c4fc9825adefeb53674ed344
BLAKE2b-256 170c25ffe55db1a745f175f436216260f4a34e50dabac82cc38ef2336c5300d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page