[vtkusers] qvtkWidget as separate window
Jon Agirre
jon.agirre at gmail.com
Tue Jan 31 13:14:07 EST 2012
Yes, it appears that I've used a different workaround. I'll try to tidy up
everything for publishing it there as an example. However, how do I send
it? Would it get included in the VTK distribution as an example, or would
it appear just in the wiki?
Thanks!
Jon
2012/1/31 David Doria <daviddoria at gmail.com>
> On Tue, Jan 31, 2012 at 8:30 AM, Jon Agirre <jon.agirre at gmail.com> wrote:
>
>> Hi Doug,
>>
>> thanks for your reply. I've been able to figure this out myself,
>> according to Murphy's Law of Support Mailing Lists (Despite having spent
>> two weeks on one problem, you only get to solve it right after asking for
>> help in the appropriate mailing list).
>>
>> The solution seems to be to add the qvtkWidget to a separate QWidget,
>> which acts as a window. There were two problems: 1) qvtkWidget's parent
>> should be the widget I'm summoning to act as separate window. 2) In the
>> QWidget's creator, the flags should be adjusted to something sensible, i.e.
>> Qt::Dialog. I had them set as Qt::Window.
>>
>> Thanks!
>>
>> Jon
>>
>
> If you've done something that isn't demonstrated here:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx#Qt
>
> it would be great if you would add an example.
>
> David
>
--
Dr. Jon Agirre
Postdoctoral Scientist - Protein and
Virus X-ray Crystallography Group
Biophysics Unit (CSIC-UPV/EHU)
+0034946013357
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120131/18c3d7b7/attachment.htm>
More information about the vtkusers
mailing list