[Qt-interest] webkit with no GUI

Daniel Vérité daniel.verite at gmail.com
Tue Dec 16 15:22:12 CET 2008


	 Benjamin writes

> I have no idea if you can make Webkit work without a gui, but it
> seem that the problem come from the call to
> QApplication::style(). You could try to make a subclass of
> QApplication, overriding ::style() to return your own QStyle.
> 
> Please respond if it works, I'm curious if webkit could work on the
> commande line :-)

I'm calling now 
  QApplication::setStyle(new QCleanlooksStyle());
before instantiating QApplication() (still with no GUI),
and although it just postpones the problem on the solaris-x86 platform 
I want this for, I've noticed that it does work now on my linux-x86 
box. 

On solaris, QWebPage's contructor segfaults in XListFonts(), a X11 
function, I guess because of the lack of an X connection. My Qt install 
doesn't use fontconfig due to some linking problem with libiconv at 
configure time, so now I'm on to hack that, reconfigure with 
fontconfig, and see if it can use fonts without an X server after that.

Best regards,
-- 
 Daniel
 PostgreSQL-powered mail user agent and storage: 
http://www.manitou-mail.org 



More information about the Qt-interest-old mailing list