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.6.tar.gz (26.6 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.6-cp312-cp312-win_amd64.whl (36.7 kB view details)

Uploaded CPython 3.12Windows x86-64

File details

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

File metadata

File hashes

Hashes for borco_shiboken_example-0.0.6.tar.gz
Algorithm Hash digest
SHA256 fa5c8cf4a7402a83e45243931ad44311f37f9f68203a55b3cfd753e7f64e6ad2
MD5 ea22c9294a965eb72d5fa85d6d922539
BLAKE2b-256 65d667069fe776f4a9506ce4ba2f3350cda8d21cb8ee45bcc9e3624a5d0e92b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for borco_shiboken_example-0.0.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b57d9ac02a7eba2049dbd89b7e94acbfe18f11ae5b43fe4cbff3325d6e23cc63
MD5 7bc7bb05c3a768f3c9fb828d193e5278
BLAKE2b-256 3b5cb98ac11f66e7e6f06d32f41b213d19cc0d065ac0b6f587edc0875039b059

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