Results 1 to 3 of 3

Thread: Converting number to string.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #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"

  2. 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, 17:11
  2. converting string to unsigned integer
    By mgurbuz in forum Qt Programming
    Replies: 4
    Last Post: 12th May 2006, 09: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, 09:55
  4. Replies: 6
    Last Post: 5th March 2006, 21:05
  5. signal slot conection using a string, not a SLOT
    By rianquinn in forum Qt Programming
    Replies: 6
    Last Post: 5th February 2006, 18: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
  •  
Qt is a trademark of The Qt Company.