Results 1 to 2 of 2

Thread: How to use void QTextStream::setRealNumberNotation

  1. #1
    Join Date
    Jan 2016
    Posts
    76
    Thanks
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows Android

    Default How to use void QTextStream::setRealNumberNotation

    For a purpose I need to use void QTextStream::setRealNumberNotation(RealNumberNotat ion notation). I looked at so-called Docs for it, but there is no example for beginners! (It's here: http://doc.qt.io/qt-5/qtextstream.ht...NumberNotation)

    For example:

    Qt Code:
    1. // here how to use it
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to use void QTextStream::setRealNumberNotation

    It doesn't have an example because the documentation assumes basic C++ knowledge, such as how to call a method on an object.

    The syntax is:

    name of the variable, followed by . or -> (depending on whether the object is on the stack or a pointer), followed by the method and its arguments.

    Your code snippet is missing the name for the QTextStream variable.

    I highly recommend reading some basic C++ material before continuing.

    Cheers,
    _

Similar Threads

  1. QSharedPointer of type void
    By HERC in forum Qt Programming
    Replies: 0
    Last Post: 12th May 2010, 12:59
  2. error: void value not ignored as it ought to be
    By dreamer in forum Qt Programming
    Replies: 2
    Last Post: 5th May 2008, 16:17
  3. QTextOStream and void*
    By mclark in forum Newbie
    Replies: 4
    Last Post: 7th August 2006, 18:40
  4. diffrence between void and virtual void
    By raphaelf in forum General Programming
    Replies: 2
    Last Post: 23rd February 2006, 13:58
  5. void clearWState( uint n );
    By sunil.thaha in forum Qt Programming
    Replies: 4
    Last Post: 4th February 2006, 16:12

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.