[Kde-games-devel] KBreakout's QML port

Wolfgang Rohdewald wolfgang at rohdewald.de
Sat Jan 5 08:13:10 UTC 2013


Am Samstag, 5. Januar 2013, 11:17:21 schrieb Viranch Mehta:
> This is because it has to calculate the maximum size of the score text which can be fit in the box. 

            fm = QFontMetrics(self.painter.font())
            strLen = fm.width('the score text')

-- 
Wolfgang


More information about the kde-games-devel mailing list