Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.2
-
ee47ccbd9a (pyside/pyside-setup/dev) ee47ccbd9a (pyside/tqtc-pyside-setup/dev) 5eb9535b70 (pyside/tqtc-pyside-setup/5.15) 1cc547a413 (pyside/pyside-setup/6.3) 1cc547a413 (pyside/tqtc-pyside-setup/6.3) eb62049589 (pyside/tqtc-pyside-setup/6.2)
Description
A Function which takes QSharedPointer<BaseClass> as an argument, only classes which directly inherit BaseClass seem to be properly converted.
So in a nutshell:
class ClassA : public BaseClass {}; //This would be properly converted class ClassB : public ClassA {}; //This would NOT be properly converted
pointer to ClassA could be passed into the function successfully but pointer to ClassB would result in an error.
Steps to reproduce the problem:
- Build the attached project
- cmake --build <path_to_src> -DCMAKE_PREFIX_PATH=<path_to_qt>
- cmake --install <build_dir>
- Run the main.py
NOTE: this can be reproduced with 5.15.9 as well but the version can't be selected.
Attachments
Issue Links
- relates to
-
PYSIDE-1397 Shared pointer must be convertible to base class
- Closed
For Gerrit Dashboard: PYSIDE-1933 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
412142,4 | shiboken6: Generate converters for all smart pointee base classes | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
412180,3 | shiboken6: Generate converters for all smart pointee base classes | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
412181,1 | shiboken6: Generate converters for all smart pointee base classes | 6.2 | pyside/pyside-setup | Status: ABANDONED | +2 | 0 |
412185,3 | shiboken6: Generate converters for all smart pointee base classes | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
412233,3 | shiboken6: Generate converters for all smart pointee base classes | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
412256,2 | shiboken6: Use existing function to return all type system ancestors | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
412286,1 | shiboken6: Use existing function to return all type system ancestors | 6.3 | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |