Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Solved How to cast c++ quintptr to QWidget in PySide2?

    Qt for Python
    pyside2 qt for python
    1
    2
    72
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Dariusz last edited by

      Hey

      I have a c++ dll that creates a widget and returns quintptr. Or anything that I want to tbh...
      How can I cast it to QWidget in my python part of the application?

      Regards
      Dariusz

      1 Reply Last reply Reply Quote 0
      • D
        Dariusz last edited by

        Meh forgot about shiboken2 sigh
        shiboken2.wrapInstance(widget_pointer, QWidget)
        To the rescue!

        1 Reply Last reply Reply Quote 2
        • D
          Dariusz last edited by

          Meh forgot about shiboken2 sigh
          shiboken2.wrapInstance(widget_pointer, QWidget)
          To the rescue!

          1 Reply Last reply Reply Quote 2
          • First post
            Last post