Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to start or open chanel /dev/con1 to Qt-gui app???: (1 Item)
   
How to start or open chanel /dev/con1 to Qt-gui app???  
Hi, I use QNX Neutrino 6.5.0.
 I make Qt-gui application, which start a console-process. App can read all data available from the standard or error 
output of console and write  data to the form. Also I can to write a command on app-form, and send command to console. 
My application work with "sh", but don't work with "/dev/con1".
How can I to start "dev/con1" in my application ?
An example, how my app work with "sh":
source file;
//----------------------------------------------------------------------------------------------
proc = new QProcess; //sh - process
.... 
//Then clicked on Enter-key, command(*cmd) send in this function
func (QString *cmd)
{
QString *str = new QString;
*str = "sh " + *cmd;  
proc->start(*str, QIODevice::ReadWrite);
}
//-------------------------------------------------------------------------------------------