[Qt-interest] [Mac] Paint to a specific CGContextRef?
Paul Colby
qt at colby.id.au
Thu Dec 10 07:01:17 CET 2009
Hi,
This is one for the Mac/OSX experts.
Is there some way that I can tell a Qt widget use a specific
CGContextRef for painting?
The reason I ask, is because I'm working on an NPAPI plugin using the
Cocoa event model
(https://wiki.mozilla.org/Mac:NPAPI_Event_Models#The_Cocoa_event_model),
and in that mode, the plugin only receives a CGContextRef to draw with
(in the old Carbon mode I could use the supplied HIWindowRef to
QWidget::create the widget).
Any suggestions / ideas would be greatly appreciated! :)
PS I know about QtBrowserPlugin, but it doesn't support OSX (well, OSX
support is "experimental" at best), and definitely does *not* support
the Cocoa event model (it's entirely Carbon-based).
pc
----
http://colby.id.au
More information about the Qt-interest-old
mailing list