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.5.tar.gz (23.3 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.5-cp312-cp312-win_amd64.whl (24.7 kB view details)

Uploaded CPython 3.12Windows x86-64

File details

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

File metadata

File hashes

Hashes for borco_shiboken_example-0.0.5.tar.gz
Algorithm Hash digest
SHA256 93a4dbef1ffd66bdceb53be0fcc3da4c0133ab3daa8439c7c006504965d9e203
MD5 ddeb1fadd1b03cb2febcc51a06c6099e
BLAKE2b-256 d6118ed03c5574318692b67b751a88704a2529ac2d5694037ef0310b345ea8fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for borco_shiboken_example-0.0.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 91d66248165a358e8c581344078baf59568c0445227fd231d41e8f2531e5ed2a
MD5 8a677f5649cc49d2ea2fd7cdb2a27c8f
BLAKE2b-256 b9af33a7e0a49330f9511605705fe0644b81bc24610c0ba37e4fa4788751f31e

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