[Qt-interest] Problem with QFont usage in my Embedded Board

trinathpujari trinathpujari at tataelxsi.co.in
Wed Feb 10 14:48:52 CET 2010


Hi All,
          The below piece of code is working while i am running in Qt 
Creator but when i am executing the same piece of code in my embedded 
ARM board,
          It is crashing every time. Can anybody tell what could be the 
problem with the below code.

            QFont myFont("Times",20,20);

            QString str("I wonder how wide this is?");

            QFontMetrics fm(myFont);

            int width=fm.width(str);


         Please if anybody knows the problem, help me.

          Thanking in Advance.


Regards
  Trinath








More information about the Qt-interest-old mailing list