Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, September 2006
a) AWT window access b) QGraphicsView


Message 1 in thread

Hi,

we're working on a software (https://lethe.koumbit.net/trac/drone/)  
that needs a graphical view representing node and relations.

Since the qtjambi bindings for QGraphicsView are not out yet, prefuse  
(http://prefuse.org) seems a nice alternative, given our short time  
frame.

However, prefuse renders on a java.awt.graphics canvas, and there  
seems to be no way to get a handle from qtJambi. Am I right ?

If not, we would need to do everything with jambi,  and follow the  
QGraphicView path. But then, are the bindings ready yet in the latest  
nightly build ? Then, would it be possible to get the jar ?

Otherwise, we're a bit stuck waiting... Can you give us an idea of  
the release date of qtJambi supporting QGraphicsView ?

Best,
Julien



Message 2 in thread

julien wrote:
> Hi,
> 
> we're working on a software (https://lethe.koumbit.net/trac/drone/)  
> that needs a graphical view representing node and relations.
> 
> Since the qtjambi bindings for QGraphicsView are not out yet, prefuse  
> (http://prefuse.org) seems a nice alternative, given our short time  frame.
> 
> However, prefuse renders on a java.awt.graphics canvas, and there  seems 
> to be no way to get a handle from qtJambi. Am I right ?

There is no direct way of doing this. You draw it into a BufferedImage 
and copy the data into a QImage, but this would probably be rather slow ;-)

Using JNI though, you could probably get a pointer to the raw bits and 
pass those to QImage(uchar *data) constructor. Then you won't get a deep 
copy at least...

> If not, we would need to do everything with jambi,  and follow the  
> QGraphicView path. But then, are the bindings ready yet in the latest  
> nightly build ? Then, would it be possible to get the jar ?

We wanted to base Qt Jambi on released versions of Qt, meaning Qt 4.1, 
so this is the reason that QGraphicsView is not yet in Jambi. It is our 
intention to release the next tech preview of Qt Jambi against the 
released version of Qt 4.2 though, so the next tech preview will most 
likely have QGraphicsView in it.

We don't provide nightly builds of Qt Jambi yet I'm afraid...

> Otherwise, we're a bit stuck waiting... Can you give us an idea of  the 
> release date of qtJambi supporting QGraphicsView ?

The next technology preview, which most likely will contain 
QGraphicsView, is targeted at late-october or november.

best regards,
Gunnar