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

[Roadmap 2025] shiboken6: Better handling of non-default constructible or other special value types

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • 6.9.0
    • 6.8.0
    • Shiboken
    • None
    • All
    • 0448857f4 (tqtc/dev), c1b62556b (dev), 27e417a75 (dev), f0feeef45 (dev), 6410710ab (dev), e61885af2 (dev), 3b525507d (dev), 59e32ca43 (dev), 920e6e9e6 (dev), 957f14243 (dev), 7ebf16845 (dev), 6336bf22c (dev), 97ab53936 (tqtc/6.8)

    Description

      Non-default constructible <value-type> (like recently added QWebEngineFrame QWebEngineDesktopMediaRequest ) cause some issues with shiboken since the copy conversion used for function arguments requires a default constructor.

      Using <object-type> is not always an alternative since then, function return by value does not work and crashes occur when emitting signals passing by const-ref.

      In the future, there might also be other special cases like move-only types.

      • Better detection of constructibility from clang
      • Added attributes for overriding code model detection of constructibility
      • Fixed crash when passing types with pointer conversion only by const ref in Qt Signals
      • Handle Move only types
      • Fix passing non-default constructible types by ref
      • Streamlined code

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              kleint Friedemann Kleint
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: