[Qt-jambi-interest] [Qt Jambi 4.4] Can't addVideoPlayerto graphics view (scene)
Dimitri Frederickx
info at dimitrifrederickx.be
Tue Mar 25 16:39:11 CET 2008
I've removed the line:
videoPlayer.setParent(.....
But removing this line still generate the error:
GraphicsProxyWidget::setWidget: cannot embed widget 0x1ec1b6e0 that is not a
window
But I will wait for a newer version of Qt Jambi in which I can add a VideoWidget to a
graphics view. When the problem then still occurs in that version I will bother you
again ;-)
Since there are no snapshots available of Qt Jambi like there are for Qt, will it for
example be possible to publish weekly builds of 4.4 with the latest bugfixes?
/Dimitri
Eskil Abrahamsen Blomfeldt <eblomfel at trolltech.com> wrote:
> Hi, Dimitri.
>
> Dimitri Frederickx wrote:
>> Two weeks ago you posted in the newsgroups a new jar file for Mac OS X
>> because in the preview version phonon was not working. I'm using that
>> version of Qt Jambi. Based on your feedback I looked back to the code I
>> have and come to the following conclusion:
>>
>> - I can indeed not add a VideoWidget to a scene. The widget will not be
>> rended inside the view. So this will be fixed in the final version of Qt
>> Jambi?
>>
>
> Yes, I have tested this on Windows. I'll make a task to test that it
> works on the other platforms as well before going final.
>
>> - As a work around I set the parent of the VideoWidget to the
>> QGraphicsView. A QGraphicsView extends a QWidget, so setting the parent of
>> the VideoWidget to the view renders my video widget in my view, but I
>> cannot use overlays. Here is the code I use that is giving the error I told
>> before:
>>
>
> You are getting the warning you mentioned due to this work around. You
> can only add top-level widgets to a graphics view, so in your code the
> call to scene.addWidget() has no effect other than print out the
> warning. The reason the video is being displayed is that Qt Jambi is
> rendering it as a regular child widget of the graphics view. Thus, it is
> not part of the scene, and none of the transformations (rotation,
> zooming, etc) on the graphics view will have any effect on the rendering
> of the video.
>
> -- Eskil
>
More information about the Qt-jambi-interest
mailing list