PDA

View Full Version : How to apply font to QString



coolkaps
9th May 2010, 16:44
Hi Friends i am using normal QWidget as main GUI of application. In that QWidget i am drawing a rectangle and also displaying coordinates of rectangle using paint.drawText method but i want to apply smaller font to the QString that is displaying coordinates in qt-4.5.3 can anbody help???? Also i don't want to apply that font to whole QWidget and i don't want to use any QLabel or such thing.

wysota
9th May 2010, 23:27
QPainter::setFont()