Skip to content

Instantly share code, notes, and snippets.

@fernandoc1
Created July 17, 2018 21:29
Show Gist options
  • Select an option

  • Save fernandoc1/90a0c90bba7a59beba82e45d3bc4ea42 to your computer and use it in GitHub Desktop.

Select an option

Save fernandoc1/90a0c90bba7a59beba82e45d3bc4ea42 to your computer and use it in GitHub Desktop.
Testing QString::asprintf
g++ test.cpp -I /usr/include/x86_64-linux-gnu/qt5/ -fPIC -lQt5Core
#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