Hello,
My problem is that QFontMetrics is not returning proper widths and heights of text in my program. I verified this by printing all text info of word "hello" in sample separate program and main program too.
The sample works properly and it was manually compiled with g++ while the other doesn't.
While in the sample , the info read
Family=Sans Serif, Point Size = 11, Width of hello = 33
the info from my original app read
Family=Sans Serif, Point Size = 11, Width of hello = 24
And also, though I have commented *.setFont() , resize() and other geometry functions ,i still get same problem described above.
Because of this, my app looks very ugly with truncations and variations in font sizes in all used Qt widgets .
Is there any chance that the ordering of libs being linked is causing trouble ?
I tried all programs described above with Qt 4.1, and 2 snapshots of QT 4.2 on my linux system. (g++ 4.0.2)
Actually i had posted my problem in more vague form before in this thread http://www.qtcentre.org/forum/f-qt-p...ides-3874.html
Later i really tried hard to figure out the problem and noticed that it was all to do with QFontMetrics.
Please do help me solve this problem.
Thanks in advance.
Bookmarks