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. QML, resources and EXE
Forum Updated to NodeBB v4.3 + New Features

QML, resources and EXE

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 3 Posters 686 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1
    This post is deleted!
    jsulmJ 1 Reply Last reply
    0
    • SPlattenS SPlatten

      This post is deleted!

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #10

      @SPlatten use the path in this file for invalid.svg in your qml. Open qrc_resources.cpp and pull all way down to the bottom. You see :
      The path for each image file is listed in qt_resource_struct[] {}

      For example:
      play.svg has path: // :/res/play in qt_resource_struct[]
      in my qml file, /res/play is good enough.

      1 Reply Last reply
      0
      • SPlattenS SPlatten

        This post is deleted!

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

        @SPlatten It is not clear from your description whether these QML and SVG files are located in a resource file? If they are then yes they will be part of the executable.

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

        SPlattenS 2 Replies Last reply
        0
        • jsulmJ jsulm

          @SPlatten It is not clear from your description whether these QML and SVG files are located in a resource file? If they are then yes they will be part of the executable.

          SPlattenS Offline
          SPlattenS Offline
          SPlatten
          wrote on last edited by
          #3
          This post is deleted!
          1 Reply Last reply
          0
          • jsulmJ jsulm

            @SPlatten It is not clear from your description whether these QML and SVG files are located in a resource file? If they are then yes they will be part of the executable.

            SPlattenS Offline
            SPlattenS Offline
            SPlatten
            wrote on last edited by SPlatten
            #4
            This post is deleted!
            jsulmJ 1 Reply Last reply
            0
            • SPlattenS SPlatten

              This post is deleted!

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

              @SPlatten So, where are all these SVG images actually located?

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

              SPlattenS 2 Replies Last reply
              0
              • jsulmJ jsulm

                @SPlatten So, where are all these SVG images actually located?

                SPlattenS Offline
                SPlattenS Offline
                SPlatten
                wrote on last edited by
                #6
                This post is deleted!
                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @SPlatten So, where are all these SVG images actually located?

                  SPlattenS Offline
                  SPlattenS Offline
                  SPlatten
                  wrote on last edited by
                  #7
                  This post is deleted!
                  JoeCFDJ 1 Reply Last reply
                  0
                  • SPlattenS SPlatten

                    This post is deleted!

                    JoeCFDJ Offline
                    JoeCFDJ Offline
                    JoeCFD
                    wrote on last edited by JoeCFD
                    #8

                    @SPlatten I just checked the build files in my project. With qmake, images.qrc file is converted to qrc_images.cpp which is built and linked to the executable. Check in your app for the specific path setting of invalid.svg in DataModel.qml.

                    SPlattenS 1 Reply Last reply
                    0
                    • JoeCFDJ JoeCFD

                      @SPlatten I just checked the build files in my project. With qmake, images.qrc file is converted to qrc_images.cpp which is built and linked to the executable. Check in your app for the specific path setting of invalid.svg in DataModel.qml.

                      SPlattenS Offline
                      SPlattenS Offline
                      SPlatten
                      wrote on last edited by
                      #9
                      This post is deleted!
                      JoeCFDJ 1 Reply Last reply
                      0
                      • SPlattenS SPlatten

                        This post is deleted!

                        JoeCFDJ Offline
                        JoeCFDJ Offline
                        JoeCFD
                        wrote on last edited by JoeCFD
                        #10

                        @SPlatten use the path in this file for invalid.svg in your qml. Open qrc_resources.cpp and pull all way down to the bottom. You see :
                        The path for each image file is listed in qt_resource_struct[] {}

                        For example:
                        play.svg has path: // :/res/play in qt_resource_struct[]
                        in my qml file, /res/play is good enough.

                        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