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. why operation is not permitted when open image using Qt.openUrlExternally ?
Forum Updated to NodeBB v4.3 + New Features

why operation is not permitted when open image using Qt.openUrlExternally ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
7 Posts 4 Posters 361 Views 3 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by Qt embedded developer
    #1
    Qt.openUrlExternally("file:://home/embedded/embe/learning project/qtqml/06apr23/india.png")
    

    why local image not get open ? i am using linux

    output :

    gio: file:://home/embedded/embe/learning project/qtqml/06apr23/india.png: Operation not supported

    SGaistS fcarneyF 2 Replies Last reply
    0
    • Q Qt embedded developer

      @SGaist

      when i am using

      Qt.openUrlExternally("file://home/dse/edr/learning project/qtqml/06apr23/def.png")

      i get below error

      Error when getting information for file “/dse/edr/learning project/qtqml/06apr23/def.png”: No such file or directory

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #5

      Shouldn't the file scheme start by a triple slash ?

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

      Q 1 Reply Last reply
      2
      • Q Qt embedded developer
        Qt.openUrlExternally("file:://home/embedded/embe/learning project/qtqml/06apr23/india.png")
        

        why local image not get open ? i am using linux

        output :

        gio: file:://home/embedded/embe/learning project/qtqml/06apr23/india.png: Operation not supported

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        Your URL looks wrong. There's no double ˋ:ˋ in URL schemes.

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

        Q 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          Your URL looks wrong. There's no double ˋ:ˋ in URL schemes.

          Q Offline
          Q Offline
          Qt embedded developer
          wrote on last edited by
          #3

          @SGaist

          when i am using

          Qt.openUrlExternally("file://home/dse/edr/learning project/qtqml/06apr23/def.png")

          i get below error

          Error when getting information for file “/dse/edr/learning project/qtqml/06apr23/def.png”: No such file or directory

          JonBJ SGaistS 2 Replies Last reply
          0
          • Q Qt embedded developer

            @SGaist

            when i am using

            Qt.openUrlExternally("file://home/dse/edr/learning project/qtqml/06apr23/def.png")

            i get below error

            Error when getting information for file “/dse/edr/learning project/qtqml/06apr23/def.png”: No such file or directory

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

            @Qt-embedded-developer
            Start by verifying what files do exist out of india.png and def.png, we don't know rhat.

            1 Reply Last reply
            0
            • Q Qt embedded developer

              @SGaist

              when i am using

              Qt.openUrlExternally("file://home/dse/edr/learning project/qtqml/06apr23/def.png")

              i get below error

              Error when getting information for file “/dse/edr/learning project/qtqml/06apr23/def.png”: No such file or directory

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #5

              Shouldn't the file scheme start by a triple slash ?

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

              Q 1 Reply Last reply
              2
              • Q Qt embedded developer has marked this topic as solved on
              • Q Qt embedded developer
                Qt.openUrlExternally("file:://home/embedded/embe/learning project/qtqml/06apr23/india.png")
                

                why local image not get open ? i am using linux

                output :

                gio: file:://home/embedded/embe/learning project/qtqml/06apr23/india.png: Operation not supported

                fcarneyF Offline
                fcarneyF Offline
                fcarney
                wrote on last edited by
                #6

                @Qt-embedded-developer Use the static method to create url paths:
                https://doc.qt.io/qt-6/qurl.html#fromLocalFile

                auto url = QUrl::fromLocalFile("/home/embedded/embe/learning project/qtqml/06apr23/india.png");
                Qt.openUrlExternally(url);
                

                It will save you time and mistakes.

                C++ is a perfectly valid school of magic.

                1 Reply Last reply
                2
                • SGaistS SGaist

                  Shouldn't the file scheme start by a triple slash ?

                  Q Offline
                  Q Offline
                  Qt embedded developer
                  wrote on last edited by
                  #7

                  @SGaist Thanks for answer

                  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