Questions tagged [qtmath]

In the Qt framework, QtMath define functions for basic math operations not available in the C or Standard Template Libraries.

In the Qt framework, QtMath define functions for basic math operations not available in the C or Standard Template Libraries.

http://qt-project.org/doc/qt-5/qtmath.html

3 questions
2
votes
2 answers

qSin() giving wrong sin values?

I have the code: for(int i = 0; i < 314; i++){ float nextSine = aSin(i/5); qDebug() << "i: "<
JVE999
  • 3,327
  • 10
  • 54
  • 89
0
votes
0 answers

qPow() in QtMath increase CPU usage

Any explanation on different CPU usages from these two scenarios: when using qPow(x,2), CPU usage 14%; instead x*x, drops to 3% I just write a simple Qt UI dealing with some img processing. Very appreciated to any feedbacks!! For qPow(x,2), it is…
Yangroot
  • 1
  • 2
0
votes
1 answer

'qNextPowerOfTwo' was not declared in this scope - Qt

I recently installed Qt in Lubuntu and I'm getting the following error This function is provided by QtMath library which IS included in the file. any advice here? I have the same project in Windows but I have no such problem. Thanks for your…
Axe_83
  • 33
  • 8