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. Launching application using cmd through Qt
Qt 6.11 is out! See what's new in the release blog

Launching application using cmd through Qt

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 837 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.
  • O Offline
    O Offline
    Omri
    wrote on last edited by
    #1

    hello,
    1.I want to launch cmd.exe->write a command line->run it
    Can I do it using Qt? How?
    I know that in order to launch cmd.exe I can do this:

    QProcess::startDetached("cmd.exe");

    but it only opens the cmd and is set to the project's directory(I would like to set it to a specific directory).
    2. I posted here before about streaming from camera into the app and still unanswered:
    https://forum.qt.io/topic/54191/video-stream-from-raspberry-pi
    if anyone knows how to proceed that would help a lot..

    thanks

    p3c0P 1 Reply Last reply
    0
    • O Omri

      hello,
      1.I want to launch cmd.exe->write a command line->run it
      Can I do it using Qt? How?
      I know that in order to launch cmd.exe I can do this:

      QProcess::startDetached("cmd.exe");

      but it only opens the cmd and is set to the project's directory(I would like to set it to a specific directory).
      2. I posted here before about streaming from camera into the app and still unanswered:
      https://forum.qt.io/topic/54191/video-stream-from-raspberry-pi
      if anyone knows how to proceed that would help a lot..

      thanks

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @Omri You can set working directory for QProcess for that purpose using setWorkingDirectory.

      157

      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