Hi
I now have my painter working on my laptop whereI compiled the program.
It also runs on my desk computer as long as I don't re-compile it there. If I re-compile the same source code there it locks up the computer on the first "p.drawText" command. I have single stepped the program on both computers. Everything is the same. There is no problem with the "p.drawLine" command. If I option out the single p.drawText(x, y, "text"); line 16, the program runs fine.
Qt Code:
  1. p.drawLine ( xs, ys, xe, ye );
  2. /// start of labeling.
  3. if ( tempList[4] == "true" )
  4. {
  5. xc = ( xs + xe ) / 2;
  6. yc = ( ys + ye ) / 2;
  7. if ( xs == xe ) angle = pi/2.0;
  8. else if ( ys == ye ) angle = 0.0;
  9. else angle = atan((double)(ye - ys) / (double)(xe - xs));
  10. angle = ( angle * 180.0 ) / pi;
  11. p.save();
  12. p.translate ( xc, yc );
  13. p.rotate ( angle );
  14. p.scale ( 1, -1 );
  15. k = "S" + h.setNum ( n + 1 );
  16. p.drawText ( 0, 0, k );
  17. p.restore();
  18. }
To copy to clipboard, switch view to plain text mode 
I am using the same Kubuntu 7.10 on each computer.
I am sorry to be such a pest.
Thanks for help.