<br>On 16/12/05, <b class="gmail_sendername">Geoffrey Hausheer</b> &lt;<a href="mailto:mythtv0368@phracturedblue.com">mythtv0368@phracturedblue.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am trying to fix the RecordingProfiles to make more sense from a<br>transcoding perspective.&nbsp;&nbsp;What i need to do is to enable entire pages<br>depending on how the checkboxes are set.<br><br>For example on Page 1 there is a checkbox that says 'Resize Video ...'
<br>When this box is checked, I want Page 2 to be the page which allows<br>setting the width/height.<br>When the box is cleared, I want Page 2 to be the codec-setting page.<br><br>I can use a slot to catch a state-change on the button (which works
<br>fine), but calling setVisible or SetEnabled on the second window has<br>no impact.&nbsp;&nbsp;I assume this is because it has already been drawn in<br>memory (if I use setVisible during construction, it behaves as<br>expected, disabling the window).
<br><br>The only config type that seems to change on the fly is the<br>TriggeredConfigurationGroup which is actually a stack, where the<br>relevant element is raised to the top.&nbsp;&nbsp;I don't see how this could be<br>easily applied to my situation.&nbsp;&nbsp;Any ideas?
<br><br>I'd also like to be able to click a box and have an item on the<br>current page be greyed out.&nbsp;&nbsp;Again, i would this setEnabled would work<br>for this, but I've had no luck, and seen no instances in the code<br>which works this way.
<br><br>Is any of this doable?<br><br>Thanks,<br>.Geoff</blockquote><div><br>
<br>
You probably don't want to use setVisible. It's used in relation to
having Setting objects&nbsp; around to manipulate the database but
without the assocaited UI. setEnabled should be the way to go,&nbsp;
although it may not be fully implemented on all UI objects. (it's used
quite a bit within the videosource.* stuff and it was also used within
the channel editor, scanwizard&nbsp; etc)<br>
<br>
The way I got around this kind of thing before was by using&nbsp; a
TriggeredConfigurationGroup (also see videosource.* and
scanwizardhelpers.*) AFIAK it's hard to do this neatly any other way.<br>
<br>
Regards<br>
</div></div>-- <br>John