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. How to debug QQuickImageProvider?

How to debug QQuickImageProvider?

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 2 Posters 944 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

    I have an object called ColouriserImageProvider which is derived from QQuickImageProvider.

    I'm trying to find out why when the requestImage function is called the passed image has been modified. I'm trying to trace where and why this modification occurs.

    Can anyone help?

    Kind Regards,
    Sy

    jsulmJ 1 Reply Last reply
    0
    • SPlattenS SPlatten

      I have an object called ColouriserImageProvider which is derived from QQuickImageProvider.

      I'm trying to find out why when the requestImage function is called the passed image has been modified. I'm trying to trace where and why this modification occurs.

      Can anyone help?

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

      @SPlatten Set a break point inside requestImage and when the debugger stopps there check the stack trace.

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

      SPlattenS 1 Reply Last reply
      0
      • jsulmJ jsulm

        @SPlatten Set a break point inside requestImage and when the debugger stopps there check the stack trace.

        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by SPlatten
        #3

        @jsulm , Thank you, thats exactly what I did, but the first parameter which contains the image has already been modified and all the call stack gives me is assembler entries prior to this.

        The original image path contains:

        image://colouriserimageprovider/Defects/ICON_defects_lumininosity_grain_43%.png/color:#e1cdaf"
        

        When it gets into requestImage the first parameter has been modified and contains:

        Defects/ICON_defects_lumininosity_grain_43%25.png/color:#e1cdaf"
        

        Its the addition of 25 after the % that is causing a problem.

        Kind Regards,
        Sy

        jsulmJ 1 Reply Last reply
        0
        • SPlattenS Offline
          SPlattenS Offline
          SPlatten
          wrote on last edited by
          #4

          In the mean time, until I find the actual cause I'm implemented a fix in requestImage which looks for the % and skips over the 25 to build the file name, this works.

          Kind Regards,
          Sy

          1 Reply Last reply
          0
          • SPlattenS SPlatten

            @jsulm , Thank you, thats exactly what I did, but the first parameter which contains the image has already been modified and all the call stack gives me is assembler entries prior to this.

            The original image path contains:

            image://colouriserimageprovider/Defects/ICON_defects_lumininosity_grain_43%.png/color:#e1cdaf"
            

            When it gets into requestImage the first parameter has been modified and contains:

            Defects/ICON_defects_lumininosity_grain_43%25.png/color:#e1cdaf"
            

            Its the addition of 25 after the % that is causing a problem.

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

            @SPlatten said in How to debug QQuickImageProvider?:

            gives me is assembler entries

            Build in debug mode

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

            1 Reply Last reply
            0
            • SPlattenS Offline
              SPlattenS Offline
              SPlatten
              wrote on last edited by
              #6

              @jsulm , I have built in debug mode, all the dissembler entires are in Qt libraries.

              Kind Regards,
              Sy

              jsulmJ 1 Reply Last reply
              0
              • SPlattenS SPlatten

                @jsulm , I have built in debug mode, all the dissembler entires are in Qt libraries.

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

                @SPlatten Then you need to install Qt debug symbols using Qt Maintenance Tool if on Windows.

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

                SPlattenS 2 Replies Last reply
                0
                • jsulmJ jsulm

                  @SPlatten Then you need to install Qt debug symbols using Qt Maintenance Tool if on Windows.

                  SPlattenS Offline
                  SPlattenS Offline
                  SPlatten
                  wrote on last edited by
                  #8

                  @jsulm , this could be a problem as I'm on contract for an organisation and I don't have the login details which I believe are required. I have sent an email requesting assistance.

                  Kind Regards,
                  Sy

                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @SPlatten Then you need to install Qt debug symbols using Qt Maintenance Tool if on Windows.

                    SPlattenS Offline
                    SPlattenS Offline
                    SPlatten
                    wrote on last edited by
                    #9

                    @jsulm, I now have my login details and having used the "Forgot password?" link in the MaintenanceTool I have changed and validated my login details on the Qt web-site. However when I try to use the same details with the MaintenanceTool I still get "SSL handshake failed".

                    Is there a specific port that the application uses that I need to get added to the corporate firewall?

                    Kind Regards,
                    Sy

                    jsulmJ 1 Reply Last reply
                    0
                    • SPlattenS SPlatten

                      @jsulm, I now have my login details and having used the "Forgot password?" link in the MaintenanceTool I have changed and validated my login details on the Qt web-site. However when I try to use the same details with the MaintenanceTool I still get "SSL handshake failed".

                      Is there a specific port that the application uses that I need to get added to the corporate firewall?

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

                      @SPlatten said in How to debug QQuickImageProvider?:

                      Is there a specific port that the application uses that I need to get added to the corporate firewall?

                      That I don't know

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

                      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