Bring QProcess window to front (running Qt Assistant)

佐手、 提交于 2019-12-13 03:38:03

问题


My Qt application starts a QProcess that runs Qt Assistant.

I am using Linux (Ubuntu/Neon/KDE) but I want the Qt application to run on Windows and other Linux distributions as well.

Now I need a function that allows to bring the Assistant main window to front at the desktop.

I could not find a solution doing this using the QProcess object. Also I could not find a way to do this via Qt Assistant remote control.

How can I do this in a portable way?


回答1:


If all you need is showing qhc help files along with your application, you can have a look at the Qt Help module, which is used by Assistant itself.

Instead of showing the help in an external application like the Qt Assistant, it is also possible to embed the online help in the application. The contents can then be retrieved via the QHelpEngine class and can be displayed in nearly any form. Showing the help in a QTextBrowser is probably the most common way, but embedding it in What's This help is also perfectly possible.

More here



来源:https://stackoverflow.com/questions/48978863/bring-qprocess-window-to-front-running-qt-assistant

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!