Results 1 to 5 of 5

Thread: Converting QGeoCoordinate to a string and the splitting values to another list

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    518
    Thanks
    13
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Converting QGeoCoordinate to a string and the splitting values to another list

    Hi, that space has always been there because QGeoCoordinate::toString generates a string like this: "27° 28' 3.2" S, 153° 1' 40.4" E, 28.1m", and splitting does not remove anything except the separator character/string.
    You could split with ", " (string with comma followed by space) instead of ','.

    Ginsengelf

  2. The following user says thank you to Ginsengelf for this useful post:

    Corny (14th May 2019)

Similar Threads

  1. How to convert string hex values to its real binary values?
    By AttilaPethe in forum Qt Programming
    Replies: 1
    Last Post: 20th February 2012, 22:47
  2. Replies: 1
    Last Post: 23rd April 2011, 17:33
  3. [perl] converting a string
    By mickey in forum General Programming
    Replies: 5
    Last Post: 26th March 2009, 13:33
  4. Retrieving and converting values
    By jcoop in forum Newbie
    Replies: 3
    Last Post: 19th February 2009, 08:01
  5. Converting number to string.
    By safknw in forum Newbie
    Replies: 2
    Last Post: 18th September 2006, 12:12

Tags for this Thread

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.