So I have this problem: I designed a gauge that works almost always. In some environments the indicator is not shown. In the picture, the top gauge is correct, the bottom is wrong.
I attach the code that draws the indicator (needle).
In debug mode is working (of course...). In release, sometimes works, other times does not. Even in the same window, as in the picture.
Changing execution mode to Win 7 compatibility makes it work.
Executing with admin privilege makes it work.
![alt text](image url)
void Gauge::drawNeedleShort (QColor color)
const float nedR = (extR+intR)/2;
const float nR = intR*0.9;
const float ncA = 4;