Thank you Bo!

From: interest-bounces+eclark=ara....@qt-project.org 
[mailto:interest-bounces+eclark=ara....@qt-project.org] On Behalf Of Bo Thorsen
Sent: Thursday, November 08, 2012 2:09 PM
To: interest@qt-project.org
Subject: Re: [Interest] How to force a repaint?

Den 08-11-2012 20:59, Eric Clark skrev:
Hello All,

I am sorry if this sounds like a dumb question, but right now my company has 
locked us out of getting to the Qt documentation via our ridiculous proxy. 
Anyway, can anyone tell me of a function or an easy way (other than resizing 
the widget) to force a Widget to repaint?

Thank You,
Eric Clark

widget->update(); // Repaint when the event system feels like it

widget->repaint(); // Repaint right now

99.9% of the times, you want to use the first one.




Bo Thorsen.



Come by my DevDays talk in Berlin - "Designing for testability". Learn how to 
build and run your unit tests with the Qt application.



Fionia Software - Qt experts for hire.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to