calculate label size with QFontMetrics