qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] Help, Amazing to the QPainter, when I set some QFont t

Subject: Re: [Qt-interest] Help, Amazing to the QPainter, when I set some QFont to drawText, but the fontInfo is failed to change!
From: <>
Date: Wed, 10 Dec 2008 14:33:16 +0100
lvbing lvbing wrote on Wednesday, December 10, 2008 9:17 AM:

> ...
> font infomation is still the old font, the code like this: void
>     Fun(QPainter* painter,/*......*/) { QFont font;
>     font.setFamily("..."); //some font I wanted
>     painter.setFont(font);
>     //do something
> }

I don't see where you query the QFontInfo in your example ("Do something" is 
very generic). Provide a minimal complete example which shows what you are 
trying to do (especially *when* you are trying to query the QFontInfo!).

Cheers, Oliver

_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Qt-interest] Help, Amazing to the QPainter, when I set some QFont to drawText, but the fontInfo is failed to change!, Oliver.Knoll <=