Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Openning external link do not work on every computer
Forum Updated to NodeBB v4.3 + New Features

Openning external link do not work on every computer

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 4 Posters 1.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DavidM29
    wrote on last edited by
    #1

    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 ?

    raven-worxR JonBJ 2 Replies Last reply
    0
    • D DavidM29

      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 ?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @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

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      3
      • D Offline
        D Offline
        DavidM29
        wrote on last edited by
        #3

        It does have Firefox as default application I checked it by going in default programs menu in windows 7.

        Pablo J. RoginaP 1 Reply Last reply
        0
        • D DavidM29

          It does have Firefox as default application I checked it by going in default programs menu in windows 7.

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @DavidM29 being Windows 7, what happens if you double click on such file from Windows Explorer?

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DavidM29
            wrote on last edited by
            #5

            It directly open my HTML page in Firefox.

            1 Reply Last reply
            0
            • D DavidM29

              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 ?

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @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?!

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DavidM29
                wrote on last edited by
                #7

                On the one it does nothind sadly... I don't really get why it behave like that.

                Pablo J. RoginaP 1 Reply Last reply
                0
                • D DavidM29

                  On the one it does nothind sadly... I don't really get why it behave like that.

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on last edited by
                  #8

                  @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

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  D 1 Reply Last reply
                  0
                  • Pablo J. RoginaP Pablo J. Rogina

                    @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

                    D Offline
                    D Offline
                    DavidM29
                    wrote on last edited by DavidM29
                    #9

                    @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.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved