[mythtv] MythPopupBox losing focus

Isaac Richards ijr at po.cwru.edu
Thu Oct 9 12:39:55 EDT 2003


On Thursday 09 October 2003 09:40 am, Philippe C.Cattin wrote:
>    okay, I have a solution that does the job for MythPopupBox. It
> dynamically generates a QPtrList with the QButton widgets we possible
> want to cycle through (thus ignoring QLabels and stuff).
>
>    However, in case of MythDialog there are more widgets that can have
> user interaction. But what widgets should I check for??? Or should I
> cycle through all the widgets exept QLabel,...???
>
>    Is there a better solution than the dynamic_cast hack to find out
> what kind of widget I'm dealing with?
>
> any suggestions?

You could use QWidget::focusData() to get the list of focusable widgets.

Isaac



More information about the mythtv-dev mailing list