Results 1 to 8 of 8

Thread: Problem with type casting

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Problem with type casting

    Hi,

    fist please, please don't create a double on the heap! Second have a look at QString::number() to convert a number to a QString.


    And keep on going!

    EDIT: And QString::toDouble() could be also worth to look at.
    Last edited by Lykurg; 8th November 2009 at 16:18. Reason: updated contents

  2. #2
    Join Date
    Nov 2009
    Location
    Belgium
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with type casting

    Thank you for the advise. I will look into this and post my proceedings.

    please, please don't create a double on the heap!
    I have no idea what you are talking aoubt...
    Where and how did I create a double on the heap, and, what is the alternative and how should I have done this?

Similar Threads

  1. Problem regaridng Type casting QVariant
    By sudheer168 in forum Qt Programming
    Replies: 5
    Last Post: 3rd November 2009, 06:02
  2. Unicode Font Display Problem
    By QbelcorT in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd September 2009, 06:11
  3. problem with forward declaration
    By MarkoSan in forum General Programming
    Replies: 14
    Last Post: 6th January 2008, 21:45
  4. quint16 compiling problem
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 30th November 2007, 18:08
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.