View Full Version : How to use void QTextStream::setRealNumberNotation
franky
31st January 2017, 15:01
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.html#setRealNumberNotation)
For example:
QString ss;
QTextStream (&ss);
// here how to use it
anda_skoa
1st February 2017, 09:40
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,
_
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.