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. run app in windows from qml
Forum Updated to NodeBB v4.3 + New Features

run app in windows from qml

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 301 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.
  • MontanaroM Offline
    MontanaroM Offline
    Montanaro
    wrote on last edited by
    #1

    I want to launch app using another app.

    I tray this code:

    process.start("c:\windows\notepad.exe");

    but it doesnt work :(

    Can you suggest something ?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

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

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      3
      • MontanaroM Offline
        MontanaroM Offline
        Montanaro
        wrote on last edited by
        #3

        thanks.

        I tried (in linux)

        it builds but it doesn work.

        Text {
                 id: text1
             }
        
             Process {
                 id: process
                 onReadyRead: text1.text = readAll();
             }
        
        
        
        
        Keys.onPressed: {
                         if (event.key === Qt.Key_Up) {
        
                                 if (index < slidesPath.length - 1)
                                     index++;
                                
                             console.log(" key up");
        
          process.start("/home/path//file_test_qml");
        }
        

        the log is:

        qml:  key up
        
        QProcess::start: Process is already running
        
        VRoninV 1 Reply Last reply
        0
        • MontanaroM Montanaro

          thanks.

          I tried (in linux)

          it builds but it doesn work.

          Text {
                   id: text1
               }
          
               Process {
                   id: process
                   onReadyRead: text1.text = readAll();
               }
          
          
          
          
          Keys.onPressed: {
                           if (event.key === Qt.Key_Up) {
          
                                   if (index < slidesPath.length - 1)
                                       index++;
                                  
                               console.log(" key up");
          
            process.start("/home/path//file_test_qml");
          }
          

          the log is:

          qml:  key up
          
          QProcess::start: Process is already running
          
          VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          @Montanaro said in run app in windows from qml:

          QProcess::start: Process is already running

          if you want multiple processes to be run you need multiple instances of Process in your QML

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          1

          • Login

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