使用enableRemoteControl选项,Qt Assistant在linux中失败
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…所以我可能无法解决问题。。。
相关文章:
- 使用 execv 从C++代码执行的 Linux 脚本失败
- 调试模板时出现问题.专门针对 Linux GCC 7、GCC 6、GCC 5、GCC 4.9 错误构建失败:模板参数 1
- 如何在 Linux 中构建共享库时使未定义引用的链接器失败
- 构建 C++ Allegro 5 在 Linux Mint QT 上失败
- 从 Linux OMI (omicli) 到 Windows WMI 的连接失败,并出现与 DMTF 相关的错误
- Opendir() 在带有空格的名称上失败,在 Linux 上运行
- 使用 boost::序列化序列化 std::vector of unique_ptr 在 Linux 上失败
- C++在Linux机器上使用cmake Qt5 Webkit进行交叉编译,使用mingw针对Windows,失败了
- QtWebEngine 到嵌入式 Linux 交叉编译失败
- 在 Linux 上,JNI AttachNativeThread 总是失败,返回值为 -1
- Linux c++:getaddrinfo 因 EAI_AGAIN 而失败,curl 无法解析主机
- 在Linux Mint上编译Qt-OpenGL功能测试失败
- C++/LapackE 代码在 Windows 上编译良好,但相同的代码在 Linux 上编译失败
- Ostream Tellp在Windows上失败,但在Linux上没有失败
- Linux Flex gcc 编译失败,并显示"未定义对 'TclReError'的引用"
- 在linux上链接clang/llvm库总是失败
- gsoap-linux c++/结构失败传递
- 代码编译在Linux上失败,在Windows上成功:原因/修复
- 在C++std::streams中,失败后,如何获得失败原因?必需:线程安全,适用于Windows和Linux(或至少M
- BLAS 替换会导致 Linux 中的矩阵乘法失败,但在 Windows 中则不然