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. Use a java GUI through QProcess
Forum Updated to NodeBB v4.3 + New Features

Use a java GUI through QProcess

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

    Hello, I apologize in advance for my bad English.

    I'm trying to write a program that read from stdout of "serialforwarder" that is a tool implemented by "tinyOS" for mote serial communication.

    This tool usually runs from linux shell by command:

    CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java:$TOSROOT/support/sdk/java/tinyos.jar
    java net.tinyos.sf.SerialForwarder -comm network@localhost:2390

    That open a GUI for mote listening, when some data is received from mote, this tool write it to stdout.
    I'd like to use Qprocess for read those data in my program, but I'm not able to use arguments, i tried this:

    @private:
    Ui::MicaZLed *ui;
    QProcess *Process; // in header file@

    @Process = new QProcess(this);
    QString program = "java";
    QStringList arguments;
    arguments << "net.tinyos.sf.SerialForwarder" << "-comm" << "network@localhost:2390";
    Process->start(program,arguments);
    qDebug() << "SF started!";@

    But when I execute this part of code, even if "SF started" is written in the qt creator console, the GUI of serial forwarder doesn't appear.

    What I have to do?

    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