01-09-2014 09:07 AM - edited 01-09-2014 09:12 AM
I've been working lately in a desktop application using QGraphicView.
How would i be able to import it to some qml scene?
I mean i can compile and run the app to my z10,only the QGraphicView, but i want access to the cascades/Qml part.
Is there any example for this anywhere...
01-09-2014 09:23 AM
Have you looked at the ForeignWindowControl...
01-09-2014 11:23 AM
01-09-2014 11:32 AM
Take a look at the Hello Foreign Window sample...
01-09-2014 04:38 PM
Afaik there's no straightforward way to port QWidget based controls to Cascades.
Depending on type of control, using QPainter API of QImage to render and displaying it as Cascades Image can be an option, but it doesn't support font rendering (drawText will crash) and updating the control with high framerate won't be possible.
ForeignWindowControl is useful if you plan to reimplement the rendering using raw OpenGL. For most types of controls it's probably an overkill.
The easiest way would be reimplementing the control in Cascades without any custom drawing.
Using Qt Quick is also an option. It can be compiled and used with BB10. But mimicking the native controls behavior and getting the app certified will be hard.
01-12-2014 07:03 PM
I've just could get it to work, what do you think if i could have a QApplication and Application in the same file.
I mean, can i make a handler lets say i start with the Application() and then by user interaction. I killed That Application instance and Open An QApplication.
Basically in runtime switching Between QApplication And Application.
I think i should go to the Qt Forums too.
Thanks in advance.
01-13-2014 02:43 PM