PDA

View Full Version : adjust font size to QLabel-size



hunsrus
9th July 2008, 15:33
Hey Guys!

i would like to adjust the font size of the the text on a subclassed qlabel, which i use as playing card in my memory game. what i simply want, is the automatical adjustment of the font size of the text on this label, when i resize the label.
as i am a total-noob concerning Qt and C++ i didnt find any helpful forum posts. as far as i remember there is an equivalent method in mfc.

please help me!

greetings

//edit: on the playing-cards will only text be displayed.