Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. URL to external website not working
Forum Updated to NodeBB v4.3 + New Features

URL to external website not working

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 1.8k Views 4 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.
  • T Offline
    T Offline
    TagLog
    wrote on last edited by
    #1

    Hi,

    The function below open an external URL and returns me the following error: "ShellExecute 'https://www.github.com/NJOYSoftware/Workflow-App/wiki' failed (error 5)"

    void MainWindow::on_actionHelp_triggered()
    {
        QUrl wikiURL("https://www.github.com/NJOYSoftware/Workflow-App/wiki", QUrl::TolerantMode);
        QDesktopServices::openUrl(wikiURL);
    }
    

    This second function work fine and open my default email client (Thunderbird for me):

    void MainWindow::on_actionReport_Bug_triggered()
    {
      QUrl mailURL("mailto:njoysoftware.company@gmail.com?subject=Bug/Problem Report&body=");
      QDesktopServices::openUrl(mailURL);
    }
    
    

    Is there somethnig I'm missing??

    raven-worxR 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Please provide these basic information:

      • Qt version
      • OS version
      • Compiler

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      0
      • T TagLog

        Hi,

        The function below open an external URL and returns me the following error: "ShellExecute 'https://www.github.com/NJOYSoftware/Workflow-App/wiki' failed (error 5)"

        void MainWindow::on_actionHelp_triggered()
        {
            QUrl wikiURL("https://www.github.com/NJOYSoftware/Workflow-App/wiki", QUrl::TolerantMode);
            QDesktopServices::openUrl(wikiURL);
        }
        

        This second function work fine and open my default email client (Thunderbird for me):

        void MainWindow::on_actionReport_Bug_triggered()
        {
          QUrl mailURL("mailto:njoysoftware.company@gmail.com?subject=Bug/Problem Report&body=");
          QDesktopServices::openUrl(mailURL);
        }
        
        

        Is there somethnig I'm missing??

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

        @TagLog said in URL to external website not working:

        Is there somethnig I'm missing??

        what OS are you running on? (I guess MS Windows?)
        I guess your system doesn't know how to handle https:// with a default application. Does http:// work?

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

        T 1 Reply Last reply
        0
        • raven-worxR raven-worx

          @TagLog said in URL to external website not working:

          Is there somethnig I'm missing??

          what OS are you running on? (I guess MS Windows?)
          I guess your system doesn't know how to handle https:// with a default application. Does http:// work?

          T Offline
          T Offline
          TagLog
          wrote on last edited by
          #4

          @raven-worx Yes, I'm running on MS Windows. I tried http:// but it doesn't work.

          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            Please provide these basic information:

            • Qt version
            • OS version
            • Compiler
            T Offline
            T Offline
            TagLog
            wrote on last edited by
            #5

            @SGaist

            • Qt version: 5.9.1
            • Qt creator: 4.4.0
            • OS version: MS Windows 7 Ultimate service pack 1
            • Compiler: MinGW 5.9.1 32bit (default)
            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              What web browser do you have installed ? Mail client ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              T 1 Reply Last reply
              0
              • SGaistS SGaist

                What web browser do you have installed ? Mail client ?

                T Offline
                T Offline
                TagLog
                wrote on last edited by
                #7

                @SGaist
                Firefox and Thunderbird

                1 Reply Last reply
                0
                • Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on last edited by
                  #8

                  @TagLog you may want to refer to this post as it implies some insufficient access rights

                  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

                  • Login

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