Dear All,
I am using Qt 4.7.3 version and my code has performance issue in Mac OS El Capitan and Sierra, QFontMetric is taking more time in above mentioned version , earlier version of OS has no issue.

Here is the sample code which is taking time

Qt Code:
  1. QFontMetrics fm(cellFont);
  2. QSize size(fm.size(0, leafIndex.data(Qt::DisplayRole).toString()));
To copy to clipboard, switch view to plain text mode 

Any idea or known issue ?
Please reply.

Thanks,