Created
July 17, 2018 21:29
-
-
Save fernandoc1/90a0c90bba7a59beba82e45d3bc4ea42 to your computer and use it in GitHub Desktop.
Testing QString::asprintf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| g++ test.cpp -I /usr/include/x86_64-linux-gnu/qt5/ -fPIC -lQt5Core |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <QtCore/QString> | |
| #include <QtCore/QDebug> | |
| int main() | |
| { | |
| QString str = QString::asprintf("Test %f", 0.002); | |
| qInfo() << str; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment