How to forcibly update child widgets in parent?



  • Looks like QWidget::update() doesn't update child widgets, if I have to manually update children, how to get that?
    Thanks.



  • Why you think it doesn't update child widgets?



  • I got a container widget which included several child widgets,

    Calling MyContainerWidget::update() didn't update those children in my case.



  • That's right. But why do you want a parent update their children? Aren't they supposed to know that they need a repaint?

    (In any case, you can just get the list of children widgets and call update manually).



  • [quote author="peppe" date="1311579226"]
    (In any case, you can just get the list of children widgets and call update manually).[/quote]

    That's exactly what I do not want to do, not smart anyway :(

    In GUI view, yes, I should not bother to manually update children.
    In my case, I have another internal logic to update view. When and how to paint view is not fully determined by those paint events.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.