Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Hi ! I want to use python script in QML C++ project is it impossible ?
Qt 6.11 is out! See what's new in the release blog

Hi ! I want to use python script in QML C++ project is it impossible ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.6k Views 2 Watching
  • 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.
  • Mehmet AKM Offline
    Mehmet AKM Offline
    Mehmet AK
    wrote on last edited by Mehmet AK
    #1

    Hi ! I want to use python script in QML C++ project is it impossible ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Do you mean something similar to what's described here ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • Mehmet AKM Offline
        Mehmet AKM Offline
        Mehmet AK
        wrote on last edited by
        #3

        thx SGaist. i mean like qml and c++ integration.
        i want to call pyhton function or class in qml or c++

        mrjjM 1 Reply Last reply
        0
        • Mehmet AKM Mehmet AK

          thx SGaist. i mean like qml and c++ integration.
          i want to call pyhton function or class in qml or c++

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Mehmet-AK
          Hi
          I doubt its possible to call python inside QML but its surely is from c++
          Besides the native embeddable way as @SGaist links to
          there is also
          http://pybind11.readthedocs.io/en/master/advanced/embedding.html
          Which is slightly more high level in my opinion.
          It does however use Cmake and requires a modern compiler.

          Mehmet AKM 1 Reply Last reply
          3
          • mrjjM mrjj

            @Mehmet-AK
            Hi
            I doubt its possible to call python inside QML but its surely is from c++
            Besides the native embeddable way as @SGaist links to
            there is also
            http://pybind11.readthedocs.io/en/master/advanced/embedding.html
            Which is slightly more high level in my opinion.
            It does however use Cmake and requires a modern compiler.

            Mehmet AKM Offline
            Mehmet AKM Offline
            Mehmet AK
            wrote on last edited by
            #5

            @mrjj thx mrjj .

            1 Reply Last reply
            0

            • Login

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