[Qt-interest] Port of Gecko to Qt? [Why not Webkit]

Raja Sekharan websweetweb at gmail.com
Wed May 6 19:19:05 CEST 2009


I'm currently developing a WYSIWYG editor for a FOSS project. I have a
working WYSIWYG editor like the WYSIWYG example posted on the blog
couple of months ago. As of now, all the functionality like insert text
field, insert text area, insert table, insert registration form, etc are
done through running javascript in qwebview (document.execCommand). Most
commonly needed functions (for example: add row to a html table) cannot
be implemented like this on the long run. 

I can't use QtWebKit because it doesn't have enough API functions. I
need to be able to throw my own signals from Webkit - such as when a
user double clicks on an image in contentediable mode, I want to show a
dialog to edit its properties. This is currently not possible in
QtWebKit. 

The user interface interaction such as clicking links, entering text in
textfields shouldn't work in contenteditable mode but they do in
qtwebkit's contenteditable mode. Webkit also generates REALLY horrible
HTML code from the contenteditable mode. 

To change all this, correct me if I am mistaken, I would have to change
webkit's contenteditable mode to add and remove such functionality to
QtWebKit seperately. But if I did that, I am worried that might cause
issues when porting to Windows or Mac (from Linux). 

Heck, I don't even know what how do I do that. Should I copy the qt's
webkit src from the sdk, change it and include it? 

Or should I get the webkit source from the webkit website, wrap it as a
new qwidget and add the functionality all over again (and perform heart
bypass surgery on it). 

I wasn't able to find much documentation for webkit at webkit.org. Gecko
seemed to have much better documentation. 

Any ideas?

Thank you,

Raj

On Wed, 2009-05-06 at 09:01 +0100, Sean Harmer wrote:
> Raja Sekharan wrote:
> > Hi
> >
> > Is there a Qt port of Mozilla's Layout engine - Gecko? I came across 
> > some links while searching online but all of them are broken. So, is 
> > there a Qt port of the Gecko layout engine? Please point me to the URL 
> > where I might find it.
> I don't know of any working Qt port of Gecko. Is there a reason why you 
> can't simply use QtWebKit?
> 
> Sean
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list