Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Execute external program from qtquick 1.0

Execute external program from qtquick 1.0

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 1.1k Views 1 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.
  • Q Offline
    Q Offline
    QtGuy
    wrote on last edited by
    #1

    Hi

    I am using kde 4 and developing qml apps to teach myself qml. I have been trying to execute an external program with qml or javascript but I have been unable to locate a means. I have viewed web pages that call to develop c code to be compiled then accessed from within qml. How do I do that? I would appreciate a response. Thank you.

    1 Reply Last reply
    0
    • X Offline
      X Offline
      xargs1
      wrote on last edited by
      #2

      See if this does what you want:

      http://www.xargs.com/qml/process.html

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        QtGuy
        wrote on last edited by
        #3

        Thanks for the response. Unfortunately I am not a C++ developer so I do not know how to proceed. Can you respond with a set of instructions on how to process that code? Thanks.

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xargs1
          wrote on last edited by
          #4

          There's really not much more to it than described on the web page. You'll go through the "New File" dialog in Creator, and add a C++ class called Process. Then paste the code into your process.h, and make the changes specified to your main.cpp.

          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