Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2462

Added features for QSharedPointer and std::shared_ptr (or derived)

    XMLWordPrintable

Details

    • Windows
    • add66c6f9 (dev), b7d75f876 (dev), f6d11df94 (dev), 59665b29c (6.6), 7604b5080 (6.6), 113eaeff4 (6.6), 25a64e5ea (dev), 5e9d6b166 (6.6), 18ba7a9af (dev), bd67a7e8c (6.6), 738d19531 (dev), 9d3526714 (6.6)

    Description

      This is a request for the following features to be added to Qt for Python

       

      print(ptr): returns something more understandable and appealing than the "ameopen_headless_direct_py.QSharedPointer_ameopen_API object at 0x0000011A7CEA3780>".

      Something like "ameopen_headless_direct_py.QSharedPointer<ameopen.API> object at 0x000001A07D63FCC0", or be configurable in the typesystem to print what we want (with keywords to get each part of the pointer: pointed type (without mangling), pointer type, pointer address, etc.

       

      dir() show the data() function of the shared pointer (at least because useful in some cases) + all the functions of the pointed instance (because it can be a derived type, it is important to show the functions of that derived type and not of the initial type of the shared pointer).

      In summary, it should return: list(set(dir(ptr) + dir(ptr.data())))

      Attachments

        For Gerrit Dashboard: PYSIDE-2462
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            kevin.zhang Kevin Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: