现在好像不推荐使用这个class了阿!
The QAssistantClient class provides a means of using Qt Assistant as an application's help tool.
Note: This class is obsolete and only required when using the old Qt Assistant, now called assistant_adp. If you want to use the new Qt Assistant as a remote help viewer, simple create a QProcess instance and specify assistant as its executable. The following code shows how to start Qt Assistant and request a certain page to be shown:
QProcess *process = new QProcess(this);
QString app = QLibraryInfo::location(QLibraryInfo::BinariesPath)
+ QLatin1String("/assistant");
process->start(app, QStringList() << QLatin1String("-enableRemoteControl"));
if (!process->waitForStarted()) {
QMessageBox::critical(this, tr("Remote Control"),
tr("Could not start Qt Assistant from %1.").arg(app));
return;
}
// show index page
QTextStream str(process);
str << QLatin1String("SetSource qthelp://mycompany.com/doc/index.html")
<< QLatin1Char('\0') << endl;
}
For a complete example using the Qt Assistant remotely, see the Remote Control example.