diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-12-20 13:02:30 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-01-07 13:48:58 +0100 |
| commit | 3b5303a358546f935a88ae29af1febaac82ec746 (patch) | |
| tree | cfad37ecabd3125b456561b0326807ec9d280347 /sources/pyside6/doc/tutorials/qmlapp/main.py | |
| parent | 76337a15b48ae189ee244fe1475a6203d396eeae (diff) | |
shiboken6: Fix classes "using" base class constructors
Change 2107b9c16d7be1292c5439a47ed31871906e0b1f implemented making
base class functions visible via "using" directive. However, since it
was implemented in getInheritedFunctions() based on names, it did not
work for constructors since they have a different name.
As a consequence, no tp_init function was generated for the test case
and the tp_init function was called instead, creating a base class
instance.
Add a function that adds the base constructors for the simple
case of the class having no constructor in case "using" was
specified.
Add a data member to the test to test this.
[ChangeLog][Shiboken6] Making base class constructors
visible via "using" directive has been fixed for simple cases.
Pick-to: 6.8
Task-number: PYSIDE-2966
Change-Id: I8e11cdaf0d1af0f7fad7834039a23322e146c9e0
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials/qmlapp/main.py')
0 files changed, 0 insertions, 0 deletions
