Results 1 to 5 of 5

Thread: QDataStream::setFloatingPointPrecision /double / sinlge floats and doubles ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default QDataStream::setFloatingPointPrecision /double / sinlge floats and doubles ?

    On qt reference you write :
    if the floating point precision is DoublePrecision and the version of the data stream is Qt_4_6 or higher, all floating point numbers will be written and read with 64-bit precision. If the floating point precision is SinglePrecision and the version is Qt_4_6 or higher, all floating point numbers will be written and read with 32-bit precision.
    I want always 32 for my floats and 64 for my doubles.

    I dont understand what is for setFloatingPointPrecision...

    Auto answer... Only affects to Qreal ?
    Last edited by tonnot; 17th November 2011 at 08:33.

Similar Threads

  1. QTableView and display of doubles
    By b1 in forum Qt Programming
    Replies: 9
    Last Post: 18th November 2011, 22:52
  2. Replies: 2
    Last Post: 17th May 2011, 10:47
  3. Program not finding an existing double in a QList<double>
    By aarelovich in forum Qt Programming
    Replies: 2
    Last Post: 9th May 2011, 20:59
  4. QPainter::drawPixmap with floats ?
    By christophe.daudin in forum Qt Programming
    Replies: 8
    Last Post: 20th October 2009, 10:19
  5. vector of doubles to QByteArray
    By gmseed in forum Qt Programming
    Replies: 5
    Last Post: 16th October 2009, 15:09

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.