[Qt-interest] segfault while printing QWebView/QMdiArea

hugh hdixon at bigpond.net.au
Sat Apr 24 02:39:29 CEST 2010


Hi,
I am wanting to use a QWebView in a QMdiArea.  It seems to work OK, until I 
try to print.  I get a segfault on the QWebView::page() function.

Without going into code snippets etc, can anyone tell me:
	Is there something special I need to do to put a QWebView into a QMdiArea?  
(The idea of page() and particularly mainFrame() in a QMdiArea seem wrong to 
me)  This may be a fundamental problem in how I am setting things up.

	Am I correct in thinking I need to call  QWebView::page()::mainFrame() to get 
to a render/print function so I can print? ~ or is there an easier way?  (btw 
Do I **need** to set the render hints, cos I'm not.)  
 
I am thinking there is some bit of documentation I have missed about how to 
set up the QWebView, so a link to a help page that deals with this would be 
greatly appreciated.

Hugh



More information about the Qt-interest-old mailing list