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.
testCtags
->start
("ctags",
QStringList()<<
"-f-" <<
"--fields=+S+K+n" << filename
());
testCtags->waitForFinished(5000);
if( !lu.isEmpty() )
{
foreach
(QString s, lu.
split("\n") ) {
...
}
}
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") )
{
...
}
}
To copy to clipboard, switch view to plain text mode
Note : If I use connect for readyReadStandardError or readyReadStandardOutput signals the slot is never called.
Thanks
Bookmarks