简体   繁体   中英

Bring QProcess window to front (running Qt Assistant)

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM