You try to print the float values as integers. Don’t use sprintf, Qt provides 
much nicer methods for string manipulation
Try:
orientation = QString(“r: %1, x: %2, y: %3, z: %4, a: 
%5”).arg(orientation.real()).arg(orientation.x()).arg(orientation.y()).arg(orientation.z()).arg(orientation.angle());
(or use a QStringstream or QString::number() and the + operator)

Best Regards,
 Jochen

Von: Michael Kirches [mailto:[email protected]]
Gesendet: Mittwoch, 2. Juni 2010 13:31
An: [email protected]
Betreff: [mitk-users] How to get information on tool orientation using 
MicronTracker
                displayLabelOrientation->setToolTip("real part; imaginary part 
along axis (x,y,z); angle of rotation");
                _orientation.sprintf("%d; %d; %d; %d; %.2f;",
                    
orientation.real(),orientation.x(),orientation.y(),orientation.z(),
                    orientation.angle());

------------------------------------------------------------------------------

_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to