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. Alternative fast method for number to qstring?

Alternative fast method for number to qstring?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 496 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.
  • S Offline
    S Offline
    StudyQt1
    wrote on last edited by StudyQt1
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Why do you need to convert these numbers to QString ?

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Why do you need to convert these numbers to QString ?

        S Offline
        S Offline
        StudyQt1
        wrote on last edited by
        #3

        @SGaist Thank you for your reply, there is a database class, it only accepts inputs in string formats. I know it's kinda silly to convert every number to string but for now the codes of the database will not change

        JonBJ Christian EhrlicherC 2 Replies Last reply
        0
        • S StudyQt1

          @SGaist Thank you for your reply, there is a database class, it only accepts inputs in string formats. I know it's kinda silly to convert every number to string but for now the codes of the database will not change

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @StudyQt1
          If you really think that is taking lots of time, how does it compare to std::to_string(double)? See if there is a noticeable difference?

          1 Reply Last reply
          0
          • S StudyQt1

            @SGaist Thank you for your reply, there is a database class, it only accepts inputs in string formats. I know it's kinda silly to convert every number to string but for now the codes of the database will not change

            Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @StudyQt1 said in Alternative fast method for number to qstring?:

            There is a database class, it only accepts inputs in string formats.

            As QString or std::string or char*

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

            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