[英]Qt Assistant fails in linux with enableRemoteControl option
我在Qt中有一個應用程序,試圖使用助手尋求幫助。 它正在Windows中運行,試圖使其在Linux上運行。 使用這個例子
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;
}
沒有錯誤,我得到一個打開的窗口-無響應且為空。
如果刪除“ -enableRemoteControl
”選項,它將起作用。
跑步
/usr/bin/assistant -collectionFile theHelpFile.qhc -enableRemoteControl
啟動具有正確幫助集合的助手。
我究竟做錯了什么 ? “ -enableRemoteControl
”選項是否必要?
Qt文檔說:“為了使Assistant監聽您的應用程序,請通過傳遞-enableRemoteControl命令行選項來打開其遠程控制功能。”
但是...它可以在沒有該選項的情況下在我的應用程序中運行...並且不能使用它?
有人可以解釋為什么嗎?
似乎是最近已解決的錯誤
https://codereview.qt-project.org/#/c/95279/
“提交消息:
助手:修復了在遠程控制模式下啟動時的索引更新
幫助模型初始化后,僅應一次調用一次HelpEngineWrapper :: initialDocSetupDone()。 在每次小的更新上調用它都會導致遞歸。”
已針對Qt 5.4進行了修復...我被困在4.8 ...所以我可能無法解決該問題...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.