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. Why is there no "bool qFuzzyCompare(double p1, double p2)" method in version 5.13
Qt 6.11 is out! See what's new in the release blog

Why is there no "bool qFuzzyCompare(double p1, double p2)" method in version 5.13

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 692 Views
  • 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.
  • C Offline
    C Offline
    canid
    wrote on last edited by
    #1

    Why is there no "bool qFuzzyCompare(double p1, double p2)" method in version 5.13

    J.HilkJ 1 Reply Last reply
    0
    • C canid

      Why is there no "bool qFuzzyCompare(double p1, double p2)" method in version 5.13

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @canid what do you mean ?

          double c(10.0);
          double b(10.1);
      
          qDebug() << qFuzzyCompare(c,b);
      

      returns false in 5.13.1


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      C 1 Reply Last reply
      4
      • J.HilkJ J.Hilk

        @canid what do you mean ?

            double c(10.0);
            double b(10.1);
        
            qDebug() << qFuzzyCompare(c,b);
        

        returns false in 5.13.1

        C Offline
        C Offline
        canid
        wrote on last edited by
        #3

        @j-hilk hi
        This method is not available in the help documentation, nor in the editor. Is there no corresponding component installed

        J.HilkJ 1 Reply Last reply
        0
        • C canid

          @j-hilk hi
          This method is not available in the help documentation, nor in the editor. Is there no corresponding component installed

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by J.Hilk
          #4

          @canid
          it is

          0_1565847014888_c26cd18b-2b9e-496e-90ff-1fbadaed512e-image.png

          admittedly the wrong one came up (float instead of double) but theres no other difference


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          C 1 Reply Last reply
          4
          • J.HilkJ J.Hilk

            @canid
            it is

            0_1565847014888_c26cd18b-2b9e-496e-90ff-1fbadaed512e-image.png

            admittedly the wrong one came up (float instead of double) but theres no other difference

            C Offline
            C Offline
            canid
            wrote on last edited by
            #5

            @j-hilk
            After I reinstall qt, the method is available.But it still doesn't show up in the document, which is kind of weird

            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