Results 1 to 3 of 3

Thread: Converting number to string.

  1. #1
    Join Date
    May 2006
    Location
    Pune,India
    Posts
    63
    Thanks
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Converting number to string.

    How I can convert number to string.

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Converting number to string.

    QString::number()

  3. #3
    Join Date
    Aug 2006
    Location
    istanbul, turkey
    Posts
    42
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Converting number to string.

    also there is more general support for all types.
    it is
    Qt Code:
    1. QString::arg()
    To copy to clipboard, switch view to plain text mode 
    function.
    Example usage:

    Qt Code:
    1. QString("%1 plus %2 equals %3").arg(3).arg(5).arg("eight");
    To copy to clipboard, switch view to plain text mode 

    this QString contains:

    "3 plus 5 equals eight"

  4. The following user says thank you to hayati for this useful post:

    tpf80 (27th November 2006)

Similar Threads

  1. inserting string > 127 characters to MS Access
    By jh in forum Qt Programming
    Replies: 0
    Last Post: 12th May 2006, 18:11
  2. converting string to unsigned integer
    By mgurbuz in forum Qt Programming
    Replies: 4
    Last Post: 12th May 2006, 10:46
  3. How to get size (length, width ....) of string or char
    By Krishnacins in forum Qt Programming
    Replies: 1
    Last Post: 20th March 2006, 10:55
  4. Replies: 6
    Last Post: 5th March 2006, 22:05
  5. signal slot conection using a string, not a SLOT
    By rianquinn in forum Qt Programming
    Replies: 6
    Last Post: 5th February 2006, 19:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.