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. Running a python file from a qml button
Forum Updated to NodeBB v4.3 + New Features

Running a python file from a qml button

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 870 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
    Momoo
    wrote on last edited by
    #1

    I am new in dealing with Qt and i would like to run a python file by clicking a qml button so anybody know how can i do it?
    Thanks in advance

    JonBJ W 2 Replies Last reply
    0
    • M Momoo

      I am new in dealing with Qt and i would like to run a python file by clicking a qml button so anybody know how can i do it?
      Thanks in advance

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Momoo
      In some shape or form, you will need to make your button's click action execute code which calls http://doc.qt.io/qt-5/qprocess.html functions, e.g. QProcess::execute().

      1 Reply Last reply
      4
      • M Momoo

        I am new in dealing with Qt and i would like to run a python file by clicking a qml button so anybody know how can i do it?
        Thanks in advance

        W Offline
        W Offline
        wrosecrans
        wrote on last edited by
        #3

        @Momoo
        Do you want to run a python script with an embedded interpreter in your process? Or just run a python script as an external process?

        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