My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

This project intends to complement SWT with Qt widgets. Main effort is put into providing WebKit integration based on Qt WebKit bindings (QWebView).

Unlike Jambi, this project provides SWT APIs to Qt widgets so they can be used in SWT-based applications (i.e. Eclipse plug-ins). This code integrates Qt widgets into standard SWT builds (currently only win32 and cocoa32 are supported) so it can be used when creating plug-ins for popular Eclipse-based products.

This is how QWebView looks in the Eclipse workbench (note that the only Qt widget in the window is the browser area):

This is how QWebView can be added to Eclipse editor (or wizard, view, etc.)

browser = new SWTQWebView(root, SWT.NONE);

browser.addProgressListener(new ProgressListener() {
	public void changed(ProgressEvent event) {
		progressChange(event.current);
	}

	public void completed(ProgressEvent event) {
		downloadDone();
	}
});
browser.addLocationListener(new LocationListener() {
	public void changed(LocationEvent event) {
		location.setText(event.location);
	}

	public void changing(LocationEvent event) {
	}
});
Powered by Google Project Hosting