CEF into QGraphicsView

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF into QGraphicsView

Postby CAM » Mon Apr 16, 2012 5:08 pm

Hi,

Is it possible to use CEF into a QGraphicsView?

I want to use the scale method of the QGraphicsView.
CAM
Newbie
 
Posts: 3
Joined: Mon Apr 16, 2012 11:27 am

Re: CEF into QGraphicsView

Postby keshav » Sun Apr 22, 2012 7:14 pm

U probably need to make your own QWidget from scratch, and then use CEF, make sure to use multi thereded message loop in cef, u dont want to mess up qt and cef, it can cause errors.
keshav
Mentor
 
Posts: 82
Joined: Mon Jan 16, 2012 11:33 pm

Re: CEF into QGraphicsView

Postby CAM » Mon Apr 23, 2012 1:43 am

Thanks for reply, keshav!

I've tried to use QWinHost class to render the CEF view in a QWidget and than I've tried to add it into the graphics view using the addWidget method but this doesn't work, the widget content is empty.
How can a QWidget be created from scratch? Are there any tutorials or some example on how to do that?
CAM
Newbie
 
Posts: 3
Joined: Mon Apr 16, 2012 11:27 am


Return to Support Forum

Who is online

Users browsing this forum: finder2, Google [Bot] and 205 guests