[vtkusers] VTK + Quick 1

Jude Pereira jpereira at advsolinc.com
Wed Sep 4 15:34:25 EDT 2013


My bad. Didn't realize that (although it is obvious).

Yeah, the difference between Qt widgets and Quick 1 is big but not irreconcilable. Quick 2 on the other hand is completely different and any Qt widgets you had are useless in Quick 2.

Jude

From: Shawn Waldon [mailto:swaldon at cs.unc.edu]
Sent: Wednesday, September 04, 2013 3:31 PM
To: Jude Pereira; VTK
Subject: Re: [vtkusers] VTK + Quick 1

I haven't used QML, only pure Qt with VTK.  I wasn't aware that the difference between the two was that big...  Does anyone else have any suggestions for this?

Shawn

PS: Copy the mailing list on replies so that others know the suggestion didn't help.

On Wed, Sep 4, 2013 at 3:24 PM, Jude Pereira <jpereira at advsolinc.com<mailto:jpereira at advsolinc.com>> wrote:
I hadn't seen that exact one but I've seen something similar.
The issue isn't simply using VTK inside a Qt app.
It's using VTK inside an application with a declarative interface (i.e. QML). QML is very designer oriented and a lot of controls that exist in Qt Widgets don't exist in QML (like QVTKWidget. There is no QML equivalent)
The solution to this is to use a QGraphicsProxyWidget<http://doc.qt.digia.com/4.7/declarative-cppextensions-qwidgets.html> which (I think) lets you place widgets inside QML applications (at least QML apps designed with Quick 1).

I've tried to subclass QGraphicsProxyWidget with no luck so far. A pure Qt widget application on the other hand (like the one you linked me to) does work.

Jude

From: Shawn Waldon [mailto:swaldon at cs.unc.edu<mailto:swaldon at cs.unc.edu>]
Sent: Wednesday, September 04, 2013 3:13 PM
To: Jude Pereira
Cc: vtkusers at vtk.org<mailto:vtkusers at vtk.org>
Subject: Re: [vtkusers] VTK + Quick 2

Have you seen this example?
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUISingleInheritance

HTH,
Shawn

On Wed, Sep 4, 2013 at 3:09 PM, Jude Pereira <jpereira at advsolinc.com<mailto:jpereira at advsolinc.com>> wrote:
Hey guys,
Does anyone have any experience using QVTKWidget with a QML interface?
We would love to just use QML for the UI all the way through but since VTK does not seem to officially support QML, I've been looking into options like QGraphicsProxyWidget and embedding a subclass of it containing the QVTKWidget into the QML scene.
I haven't had much success since I keep running into exceptions inside QVTKWidget and would rather not try to debug VTK code if someone has some insight into the issue.

Any examples on the topic would help immensely.

Thanks
Jude

_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers



--
Shawn Waldon
Graduate Research Assistant
Department of Computer Science
University of North Carolina at Chapel Hill
swaldon at cs.unc.edu<mailto:swaldon at cs.unc.edu>



--
Shawn Waldon
Graduate Research Assistant
Department of Computer Science
University of North Carolina at Chapel Hill
swaldon at cs.unc.edu<mailto:swaldon at cs.unc.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130904/3b08f0b5/attachment.htm>


More information about the vtkusers mailing list