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. How to code "variable " QProcess - similar to a function ?
Forum Updated to NodeBB v4.3 + New Features

How to code "variable " QProcess - similar to a function ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 130 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    C/C++ function accepts variable parameter...
    My task is to have my QProcess to perform similarly...
    My QProcess emits "readyRead" SIGNAL connected to a slot.

    I like to pass variable "command" to QProcess and use "readyRead" for further processing.

    I can define QProcess for each task and its associated / connected slot...

    Is there a different way to accomplish the task ?

    std::string command = Command + std::string(" | tee ") + Database + std::string(" | tee /tmp/temp");
    QP->start("/bin/sh", QStringList() << "-c" << command.c_str());

    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