Unsolved Openning external link do not work on every computer
-
Hello,
I have an app with this code :
Qt.openUrlExternally("file:///path/to/help.html")
This code is supposed to open a help page on the web browser but on some computer it does nothing. When hitting the button it does nothing while on some other computer it works fine.
Does anybody have a clue about the reason of this problem ?
-
@DavidM29 said in Openning external link do not work on every computer:
Does anybody have a clue about the reason of this problem ?
make sure there is a default application assigned to the html file extension
-
It does have Firefox as default application I checked it by going in default programs menu in windows 7.
-
@DavidM29 being Windows 7, what happens if you double click on such file from Windows Explorer?
-
It directly open my HTML page in Firefox.
-
@DavidM29 said in Openning external link do not work on every computer:
but on some computer it does nothing
In your replies above (e.g. "It directly open my HTML page in Firefox."), are you testing that on the "computer it does nothing", or on a computer where your code already works correctly?!
-
On the one it does nothind sadly... I don't really get why it behave like that.
-
@DavidM29 ok, so if that's not working in such PC from Windows Explorer, Qt won't work either :-)
Are you sure that PC has a browser installed? If so, have you check the default programs? -> Control Panel\All Control Panel Items\Default Programs\Set Default Programs -
@Pablo-J.-Rogina
I did not express myself clearly I think. Sorry about that.- 1-I tried to Open my HTML file alone on the computer and it launched Firefox properly.
- 2-Then I went on my QT app and clicked on the help button and nothing happened.
- 3-So I checked that .html file are linked to a default program and it is linked to Firefox.
- 4- Tried on some other computers and it works on 2 out of 4
Note : I use the exact same soft it is located on a shared network and launch it from here always. All those computer run .html file in Firefow as default program.