[Qt-interest] Can I draw Qt objects directly to Win32 DC (Device Context)?
Long Cheng
kevinclcn at gmail.com
Fri May 28 07:36:15 CEST 2010
I can draw Qt objects to an QImage and then draw the image to HDC or
CDC. This may hurt our application's performance. It would be great if
I can draw Qt objects directly to Win32 HDC or MFC CDC. I expect that
there is a class, say QWin32Image for clear, then I can use it in this
way:
QWin32Image image(hdc, 100, 100, Format_ARGB32_Premultiplied);
QPainter painter(&image);
painter.drawText(....);
Is it possible for my thought? Or is there a better way to do that?
Thanks,
Long
More information about the Qt-interest-old
mailing list