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. Text generated by Qt 5.15 and Qt4.8 is not same usign QPainter.
Forum Updated to NodeBB v4.3 + New Features

Text generated by Qt 5.15 and Qt4.8 is not same usign QPainter.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 271 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.
  • K Offline
    K Offline
    karan26
    wrote on last edited by
    #1

    Hello,
    We have test environment which detects image and compare it with the database.
    Initially we created a database using Qt4.8.
    Now while porting the application to 5.15 the image generator for buttons or labels are differing in fonts.

    Please help us with the appropriate solution.
    PleaseWaitForVerification.PNG BeginTest.PNG

    sierdzioS 1 Reply Last reply
    0
    • K karan26

      Hello,
      We have test environment which detects image and compare it with the database.
      Initially we created a database using Qt4.8.
      Now while porting the application to 5.15 the image generator for buttons or labels are differing in fonts.

      Please help us with the appropriate solution.
      PleaseWaitForVerification.PNG BeginTest.PNG

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @karan26 said in Text generated by Qt 5.15 and Qt4.8 is not same usign QPainter.:

      Please help us with the appropriate solution.

      Update your screenshot database with what you get with Qt 5.15.

      (Z(:^

      1 Reply Last reply
      2
      • K Offline
        K Offline
        karan26
        wrote on last edited by
        #3

        Hello,
        There are more than 15000 images, so it will be very difficult to create the database again.
        So if someone can suggest the better solution would be very helpful.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote on last edited by ChrisW67
          #4

          If you will not update the images and continue to ask for exact equality you not going anywhere.

          The difference could arise because of a difference in Qt4->5 itself, a library it depends on, a change from using a bundled library to a system library, a change in what is handed off to the operating system, how font kerning and hints are implemented, antialiasing changes, helpful "features" like Windows "High-DPI scaling"...
          (You may be able to code to eliminate the last two, but I would still not expect exact equality)

          You could try an image similarity algorithm
          https://stackoverflow.com/questions/25977/how-can-i-measure-the-similarity-between-two-images
          https://stackoverflow.com/questions/75891/algorithm-for-finding-similar-images
          https://stackoverflow.com/questions/189943/how-can-i-quantify-difference-between-two-images

          1 Reply Last reply
          2

          • Login

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