# QtAda6 progress

**URL:** https://forum.ada-lang.io/t/qtada6-progress/2143
**Category:** Releases
**Tags:** binding
**Created:** [June 16, 2025, 8:09pm UTC](https://forum.ada-lang.io/t/qtada6-progress/2143 "2025-06-16T20:09:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Blady](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/b/e9bcb4/32.png) [@Blady](https://forum.ada-lang.io/u/Blady)
#### Post date: [June 16, 2025, 8:09pm UTC](https://forum.ada-lang.io/t/qtada6-progress/2143/1 "2025-06-16T20:09:39Z")

</div>

Thanks to Dmitry’s Python bindings included in handy Simple Components and his precious help, I’m pleased to release a new version of QtAda6 after one year working on Qt class derivation.

Now, you can derive a Qt class in Ada as you would do in C++ with [Derive\_Class](https://github.com/Blady-Com/QtAda6/blob/c842c02b30b277d4db950a733230c159a5c172c7/src/proxy_class.ads#L23).

I took a short demo program in C++ code which displays some environment stuff in a GUI window.  
I translated with an AI powered translator ([Free Code Converter](https://www.codeconvert.ai/free-converter)).  
It was quite good. At first reading, the resulting Ada code was readable and seemed correct.  
The Ada style was enforced, e.g. the Camel style names were translated in Ada style with underscores.  
But not so correct after a second reading, for instance, some Qt functions were translated by GTKAda ones.

Concerning Qt class derivation, it is a big step, but I’m not fully satisfied.  
I can derive properly and instantiate Python classes that I’ve defined: [PCC derived from PCA](https://github.com/Blady-Com/QtAda6/blob/c842c02b30b277d4db950a733230c159a5c172c7/tests/py-test_01_class.adb#L185).

But it fails when deriving from Qt classes with a runtime error.

> **[PySide6 with Python C API: EXC\_BAD\_ACCESS error when calling a method with...](https://forum.qt.io/topic/158977/pyside6-with-python-c-api-exc_bad_access-error-when-calling-a-method-with-inherited-class-from-qrasterwindow)**
>
> Environment: Python version: 3.9.6 (default, May 7 2023, 23:32:45) PySide6 version: 6.7.0 When I create an instance of QRasterWindow, calling the metric meth...

So I need to add Python glue code in [Derive\_Class](https://github.com/Blady-Com/QtAda6/blob/c842c02b30b277d4db950a733230c159a5c172c7/src/proxy_class.adb#L22).

The result is pushed on Github, see the demo [EnvDisplay](https://github.com/Blady-Com/QtAda6#envdisplay-full-qt-app).

Enjoy, Pascal.

---

<div class="post-metadata">

### Author: ![bjorn-lundin](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/bjorn-lundin/32/106_2.png) [@bjorn-lundin](https://forum.ada-lang.io/u/bjorn-lundin)
#### Post date: [July 3, 2025, 8:04pm UTC](https://forum.ada-lang.io/t/qtada6-progress/2143/2 "2025-07-03T20:04:54Z")

</div>

I ordered a book on Qt6 the other day,  
to see if I like it more than GTK.

And I read up some on simple components python interface,  
so this project will be nice to follow.
