Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Embed Python interpreter using PySide in a QWidget C++ application

Embed Python interpreter using PySide in a QWidget C++ application

Scheduled Pinned Locked Moved Unsolved Language Bindings
3 Posts 3 Posters 2.0k 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.
  • M Offline
    M Offline
    mabeghin
    wrote on last edited by
    #1

    Hi everyone,
    I'm working on a C++ QWidgets applications where users can execute python/lua scripts. Now I'd like python modules to be able to

    • add widgets at particular locations in the application windows
    • create new windows
      I'd like those windows / widgets to be the same than the ones the application uses (QWidgets with css).
      Is it possible with PySide ? I couldn't find the solutions online.
      Cheers
      Matt
    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Disclaimer: Not a python user.
      But it seems possible with plain python so i guess pySide also would work.
      (being a binding)
      https://ubuverse.com/embedding-the-python-interpreter-in-a-qt-application/

      1 Reply Last reply
      3
      • ewerybodyE Offline
        ewerybodyE Offline
        ewerybody
        wrote on last edited by
        #3

        I dunno C++ well enough but this kind of stuff is surely possible. For instance Maya does it just the same way.
        Or actually Cryengine Sandbox! 😃
        Here is the code on github!

        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