Just call winId() on it? No visible change.<br><br><div class="gmail_quote">On Mon, Jan 4, 2010 at 1:12 PM, Clinton Stimpson <span dir="ltr"><<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Can you try calling winId() on the QLabel to force Qt to let the operating<br>
system do the image composition for those widgets.<br>
<br>
Clint<br>
<br>
On Monday 04 January 2010 11:02:20 am Steven Ferrell wrote:<br>
> *(including VTK Users in the discussion)*<br>
<div><div></div><div class="h5">><br>
> <a href="http://imgur.com/8OU4E" target="_blank">http://imgur.com/8OU4E</a><br>
><br>
> Brief on what you're seeing: this is a Qt window that uses QDockWidgets.<br>
> The center widget is a qt mdi actor which holds four QVTKWidgets. Each of<br>
> those widgets has two renderers, one for the actor and one for the xyz axis<br>
> actor. There is a label for each vtkwidget which you can see in the top<br>
> left of each of the four render windows.. they are for some reason rendered<br>
> as black and no text is visible.<br>
><br>
> The first image is what it looks like when it starts up. Just a black area<br>
> where the label should be, no text. When I resize the left dock widget,<br>
> something happens with the text (garbled) in the label as you can see in<br>
> the second image.<br>
><br>
> Based on your responses so far I would imagine that this is unusual and<br>
> that it should be fine as I have described it. I have encountered similar<br>
> things before in Qt/VTK and they tend to just clear themselves up almost<br>
> randomly (e.g. among a couple of other weird things I've run into so far,<br>
> for some reason titles weren't displayed in my dock widgets for a while<br>
> until I removed a few unused and seemingly unrelated event handlers for<br>
> other processes). I was looking to find out if there was some obvious<br>
> behaviour I didn't know about that Qt/VTK required in order to properly<br>
> display a widget within a QVTKWidget, but it's not looking like that's the<br>
> case.<br>
><br>
> On Mon, Jan 4, 2010 at 11:37 AM, Clinton Stimpson<br>
<<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>>wrote:<br>
> > It should work except maybe if you're setting a transparent background<br>
> > for the label. What platform is this problem on?<br>
> ><br>
> > Clint<br>
> ><br>
> ><br>
> > On 01/04/2010 09:08 AM, Steven Ferrell wrote:<br>
> ><br>
> > I have created a QLabel which has as its parent a QVTKWidget, ie<br>
> > QLabel *renderTitle = new QLabel(title, vtkWidget);<br>
> ><br>
> > The label text does not render at all normally. If I resize the windows<br>
> > and play around with their size it will eventually show some of the text,<br>
> > but it becomes garbled.<br>
> ><br>
> > Do I need to perform some sort of update within some sort of event in<br>
> > order to have a QLabel within a QVTKWidget display properly?<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
> ><br>
> > Visit other Kitware open-source projects at<br>
> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> ><br>
> > Please keep messages on-topic and check the VTK FAQ at:<br>
> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> ><br>
> > Follow this link to<br>
> > subscribe/unsubscribe:<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
</div></div></blockquote></div><br>