jlbrd
1st September 2006, 14:41
Hi,
In QIde I use ctags to populate a combo with methods of a file. I use an option of ctags "-f-" who write the result of the parsing to stdout. Then I read stdout to parse the result. The code work fine under Linux. Under Windows nothing is read and lu.isEmpty() return true. ctags is a solid tool and I requests what does not work under Windows.
QProcess *testCtags = new QProcess();
testCtags->start("ctags", QStringList()<<"-f-" << "--fields=+S+K+n" << filename());
testCtags->waitForFinished(5000);
QString lu = testCtags->readAll();
if( !lu.isEmpty() )
{
foreach(QString s, lu.split("\n") )
{
...
}
}
Note : If I use connect for readyReadStandardError or readyReadStandardOutput signals the slot is never called.
Thanks
In QIde I use ctags to populate a combo with methods of a file. I use an option of ctags "-f-" who write the result of the parsing to stdout. Then I read stdout to parse the result. The code work fine under Linux. Under Windows nothing is read and lu.isEmpty() return true. ctags is a solid tool and I requests what does not work under Windows.
QProcess *testCtags = new QProcess();
testCtags->start("ctags", QStringList()<<"-f-" << "--fields=+S+K+n" << filename());
testCtags->waitForFinished(5000);
QString lu = testCtags->readAll();
if( !lu.isEmpty() )
{
foreach(QString s, lu.split("\n") )
{
...
}
}
Note : If I use connect for readyReadStandardError or readyReadStandardOutput signals the slot is never called.
Thanks