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