I have two items in my tree model i have small difference in text alignment.Is this caused by the width of the text but i checked the width of text using QFontMetrics::width() but both text are same.
Text1:111601756
Text2:999999996
Capture.PNG
As from the image you can see there is a slight alignment problem in the second text.
Here is the sample code i tried :-
Qt Code:
To copy to clipboard, switch view to plain text mode
Output:
Width 1 153
Width 2 153
I expected Width 2 to be more what is going wrong here.Is the method i am checking is wrong.
Bookmarks