Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How to cast c++ quintptr to QWidget in PySide2?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved Qt for Python
pyside2qt for python
2 Posts 1 Posters 461 Views
  • 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 Offline
    D Offline
    Dariusz
    wrote on last edited by
    #1

    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
    0
    • D Offline
      D Offline
      Dariusz
      wrote on last edited by
      #2

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

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved