Hello all,
I have the following problem :
I need to open URLs using a new window of the default browser of the OS. However, the HMI shall inhibit some user actions until the opened browser page is closed.
I tried things but still could not find any good solution :
- openUrl() method perfectly answer to the first part of my problem but it is not synchronous.
- I tried to start the browser using QProcess :
* I did not found a way to acquire the default OS browser at the runtime. Thus, I created a configuration file for my application which contains the exe paths of the browsers for all systems. This solution is good enough for me but I am open to any suggestions...
* I launch the URLs using QProcess::start(). However, I have different behaviors depending on the meteorite falls on Mars :
-> Windows, IExplorer : It seems to behave like I want.
-> Linux/Windows, Firefox : I have to deal with another problem : firefox cannot be easily launch in a new separate process. Thus, if the browser is not initially launched, the solution works. If firefox is already launched, QProcess exit immediately.
I am using Qt5 and my soft is executed on Linux and Windows.
Did anyone face this general problem of launching a synchronous browser?
I am sorry if my english is full of mistakes. I tried my best![]()
Bookmarks