I have an application in Qt trying to use the helper for reference. It works on Windows, trying to make it work on Linux. Using this example
if (process->state() == QProcess::Running) return; QString app = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QDir::separator(); #if !defined(Q_OS_MAC) app += QLatin1String("assistant"); #else app += QLatin1String("Assistant.app/Contents/MacOS/Assistant"); #endif QStringList args; args << QLatin1String("-collectionFile") << "theHelpFile.qhc" << QLatin1String("-enableRemoteControl"); process->start(app, args); if (!process->waitForStarted()) { QMessageBox::critical(this, tr("Remote Control"), tr("Could not start Qt Assistant from %1.").arg(app)); return; }
No error, I get an open window - insensitive and empty.
If I remove the " -enableRemoteControl " parameter, it will work.
Performance
/usr/bin/assistant -collectionFile theHelpFile.qhc -enableRemoteControl
launches the assistant using the correct help collection.
What am I doing wrong? Is the -enableRemoteControl option -enableRemoteControl ?
The Qt documentation says that "For the assistant to listen to your application, enable its remote control functions by passing the command line -enableRemoteControl option."
But ... it works from my application without this option ... and does not work with it?
Can someone explain why?
source share