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. Very long time loaded svg in Image.
Forum Updated to NodeBB v4.3 + New Features

Very long time loaded svg in Image.

Scheduled Pinned Locked Moved Solved QML and Qt Quick
13 Posts 4 Posters 854 Views 1 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.
  • M Offline
    M Offline
    Mihaill
    wrote on last edited by Mihaill
    #3

    Win 11, Qt 6.8. Problem with big svg (5 mb)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #4

      Would it be possible to share a minimal compilable project with a sample svg file ?

      By the way, can you check with a more recent version of Qt ?

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mihaill
        wrote on last edited by Mihaill
        #5

        It's minimal code, but I can'd load hear file on 5 mb and i can't add heare zip-file
        It's link on file https://transfiles.ru/iwsua

        Rectangle {
                z: 111
                anchors.fill: parent
                color: "grey"
                Image {
                    anchors.fill: parent
                    fillMode: Image.PreserveAspectFit
                    asynchronous: true
                    cache: true
                    source: "file:///C:/QtProjects/build-BTeleShell-ui-Desktop_Qt_6_8_3_MSVC2022_64bit-Debug/BModules/mmTerminal/debug/data/svgBuilding/12/13543/0/1.svg"
                    // source: "file:///C:/QtProjects/build-BTeleShell-ui-Desktop_Qt_6_8_3_MSVC2022_64bit-Debug/BModules/mmTerminal/debug/data/svgBuilding/12/13543/0/2.svg"
                    // source: "file:///C:/QtProjects/build-BTeleShell-ui-Desktop_Qt_6_8_3_MSVC2022_64bit-Debug/BModules/mmTerminal/debug/data/svgBuilding/12/48.svg"
                }
            }
        
        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by Christian Ehrlicher
          #6

          See https://bugreports.qt.io/browse/QTBUG-139060
          As a local workaround you can compile QtSvg by yourself and remove the call to detectCyclesAndWarn(m_doc)

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          M 1 Reply Last reply
          2
          • M Offline
            M Offline
            Mihaill
            wrote on last edited by
            #7

            What you mean? Me need compile all Qt or only QtSvg? And how mach time need comman Qt for fix this bug?

            jsulmJ 1 Reply Last reply
            0
            • M Mihaill

              What you mean? Me need compile all Qt or only QtSvg? And how mach time need comman Qt for fix this bug?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #8

              @Mihaill said in Very long time loaded svg in Image.:

              Me need compile all Qt or only QtSvg?

              As written: QtSvg

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              M 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Mihaill said in Very long time loaded svg in Image.:

                Me need compile all Qt or only QtSvg?

                As written: QtSvg

                M Offline
                M Offline
                Mihaill
                wrote on last edited by
                #9
                This post is deleted!
                1 Reply Last reply
                0
                • Christian EhrlicherC Christian Ehrlicher

                  See https://bugreports.qt.io/browse/QTBUG-139060
                  As a local workaround you can compile QtSvg by yourself and remove the call to detectCyclesAndWarn(m_doc)

                  M Offline
                  M Offline
                  Mihaill
                  wrote on last edited by
                  #10

                  @Christian-Ehrlicher said in Very long time loaded svg in Image.:

                  compile QtSvg by yourself and remove the call to detectCyclesAndWarn(m_doc)

                  I compile, get Qt6Svg.dll and Qt6SvgWidgets.dll and push in dir with my .exe, but its steel don't work.

                  1 Reply Last reply
                  0
                  • Christian EhrlicherC Offline
                    Christian EhrlicherC Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    Because you built your app in debug mode but you did not built QtSvg in debug mode.
                    look in the debugger output which dlls get loaded from where

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    M 1 Reply Last reply
                    2
                    • M Offline
                      M Offline
                      Mihaill
                      wrote on last edited by
                      #12

                      Yes, I add this dll in release and then svg is work, thanks

                      1 Reply Last reply
                      0
                      • Christian EhrlicherC Christian Ehrlicher

                        Because you built your app in debug mode but you did not built QtSvg in debug mode.
                        look in the debugger output which dlls get loaded from where

                        M Offline
                        M Offline
                        Mihaill
                        wrote on last edited by
                        #13
                        This post is deleted!
                        1 Reply Last reply
                        0
                        • M Mihaill has marked this topic as solved on

                        • Login

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