PDA

View Full Version : QML plugin + QAxWidget



Fastman
19th July 2012, 18:07
Hi,
I tried to make QML plugin based on QAxWidget and call it from QML.
Widget subclass QAxWidget and use ActiveX QuickTime.
I get the sound from video, but no picture, just white frame.

Is there way to do it or this is impossible / bug ?

wysota
20th July 2012, 11:48
I don't think ActiveX is the right approach here. At best you'll get a non-scaled static choppy video output possibly positioned in the wrong place.

Fastman
21st July 2012, 13:42
I don't think ActiveX is the right approach here. At best you'll get a non-scaled static choppy video output possibly positioned in the wrong place.
Yes, you are right. But but now QML does not have good tools for working with video.
Video component (from Multimedia Kit) is very simple :(
For professional cases I need tools which will allow me to write custom player with some
very important features(frame accurate/frame processing/native non directshow decoders/etc).
Native Qt can do it, but still no way to do it in QML.

Maybe you can suggest me something ?
Thanks.

wysota
21st July 2012, 14:13
You can export anything you like to QML by implementing a custom item type. Or you can expose to QML just an engine that does what you want using built-in QObject exposing features of QtQuick and then attach that to an existing QML element (e.g. Image).